Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965
Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
...
This commit was generated using the following script, executed at the
top level of a typical source code checkout.
# Don't modify select files in mfbt/ because it's not worth trying to
# tease out the dependencies currently.
#
# Don't modify anything in media/gmp-clearkey/0.1/ because those files
# use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
grep -v 'mfbt/RefPtr.h' | \
grep -v 'mfbt/nsRefPtr.h' | \
grep -v 'mfbt/RefCounted.h' | \
grep -v 'media/gmp-clearkey/0.1/' | \
xargs perl -p -i -e '
s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#; # handle strange #includes
'
# |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'
# RefPtr.h used |byRef| for dealing with COM-style outparams.
# nsRefPtr.h uses |getter_AddRefs|.
# Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Carsten "Tomcat" Book
15c4d32dd7
merge mozilla-inbound to mozilla-central a=merge
2015-10-16 13:17:56 +02:00
Dave Hylands
019bf5ec06
Bug 1177374 - Call realpath on volume mount points so thatVolumeService::GetVolumeByPath works properly. r=achen
2015-10-15 11:42:10 -07:00
Jessica Jong
94ae9b0eda
Bug 1214518 - B2G RIL: wait for emulator pending command before calling finish(). r=echen
...
--HG--
extra : commitid : KD3dGA1IRve
2015-10-15 10:51:14 +08:00
Dave Hylands
5b06270c15
Bug 1205028 - Don't tell MTP server about files that it added/modified. r=alchen
...
With this patch, we introduce mtp-watcher-notify, used to tell device storage
about new files added by MTP, and mtp-watcher-update, used to tell MTP about
device storage changes.
By using 2 new messages, rather than trying to reuse file-watcher-notify and
file-watcher-update, we prevent update "loops".
2015-10-13 15:35:11 -07:00
Edgar Chen
399862a3ac
Bug 1213547 - [Cellbroadcast] Split test_ril_worker_cellbroadcast.js into smaller tests. r=btseng
...
--HG--
rename : dom/system/gonk/tests/test_ril_worker_cellbroadcast.js => dom/system/gonk/tests/test_ril_worker_cellbroadcast_gsm.js
extra : commitid : EHNXJp6TDAd
extra : rebase_source : 49f00c3248161656fe96a3f078c565c9f51a7c44
2015-10-10 12:05:38 +08:00
Tom Schuster
2dd52c790d
Bug 980945 - Followup: Fix b2g test on CLOSED TREE. r=tree-fairy
2015-10-15 19:23:11 +02:00
Andrew McCreight
0ff7248107
Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
...
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.
I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Carsten "Tomcat" Book
08997000eb
Backed out 2 changesets (bug 1202902
) to recking bug 1202902
to be able to reopen inbound on a CLOSED TREE
...
Backed out changeset 647025383676 (bug 1202902
)
Backed out changeset d70c7fe532c6 (bug 1202902
)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d
Backed out 1 changesets (bug 1202902
) for causing merge conflicts to mozilla-central
...
Backed out changeset cfc1820361f5 (bug 1202902
)
--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6
Bug 1202902
- Scripted fix the world.
2015-10-06 14:00:31 -07:00
Carsten "Tomcat" Book
f11b039d32
Merge m-c to b2g-i on a CLOSED TREE
2015-10-05 13:55:18 +02:00
XiaoLe Sun
c9bc7571c0
Bug 1187262 - Let the flag 'Services.io.offline' reference the state of tethering. r=jjong
2015-10-05 09:59:08 +08:00
Phil Ringnalda
93999bd66d
Bug 1207936 - Disable test_ril_worker_cellbroadcast.js for constant timeouts
2015-10-04 18:35:12 -07:00
Alastor Wu
4c8b8db1c6
Bug 1196358 - update volume setting to database when the volume changing. r=sotaro.
...
--HG--
extra : transplant_source : %F7%C4%E9b0%23%91e%88p%A7_2%14D.%88J%7E%FE
2015-09-30 16:14:59 +08:00
Carsten "Tomcat" Book
363e40e298
merge mozilla-inbound to mozilla-central a=merge
2015-09-28 14:13:24 +02:00
Dave Hylands
dfe7f73d62
Bug 1195166 - AutoMounter: add ignore command to allow volumes to be ignored. r=alchen
...
--HG--
extra : amend_source : f1f8c08429d8ca614c6c936dc8b20ab227eaac99
2015-09-25 13:23:32 -07:00
Wes Kocher
40f2f82907
Merge m-c to inbound, a=merge
2015-09-25 18:02:38 -07:00
Hayden Huang
997857d190
Bug 1175447 - mono audio support. r=padenot, r=sotaro
...
This patch is to enable mono audio option for those who has full hearing loss in one ear.
With this feature, they can get the complete audio with using one ear.
--HG--
extra : transplant_source : %EC%27%97%1Ai%0D%E3%BC%D0%12%97-K%0Ek%BD%8A%C8%A9%85
2015-08-06 14:30:22 +08:00
Sotaro Ikeda
26362a68bd
Bug 1208155 - Make hal functions explicit in AudioManager r=alwu
2015-09-25 04:56:28 -07:00
Garvan Keeley
20b7d96d1c
Bug 1207266 - turn off b2g stumbler if no RIL. r=jdm
2015-09-24 01:29:47 -04:00
Wes Kocher
0625b82581
Merge b2ginbound to central, a=merge CLOSED TREE
2015-09-23 13:18:17 -07:00
Carsten "Tomcat" Book
d1ec083e7e
Backed out 1 changesets (bug 1196358) for causing test failures in test_settings_service.xul
...
Backed out changeset a2e4fa843ae5 (bug 1196358)
2015-09-23 12:09:29 +02:00
Alastor Wu
ef1434ba9e
Bug 1196358 - update volume setting to database when the volume changing. r=sotaro
...
--HG--
extra : rebase_source : 72ba871c7012c9817df2516c061ffa874605208c
2015-09-22 11:24:31 +08:00
Jessica Jong
501dddb517
Bug 1174998 - Part 4: Test cases for network interface's MTU. r=echen
...
--HG--
extra : commitid : LUMCyzwMO8c
2015-09-23 15:35:34 +08:00
Jessica Jong
3e46f04257
Bug 1174998 - Part 3: Read data call's MTU from network/apn settings. r=echen
...
--HG--
extra : commitid : Fa5T0Y4cD12
2015-09-23 15:35:32 +08:00
Jessica Jong
6d44b27f12
Bug 1174998 - Part 2: Set MTU for connected network interfaces. r=echen
...
--HG--
extra : commitid : Py0xGFk3tb
2015-09-23 15:35:31 +08:00
Jessica Jong
74cd4ce044
Bug 1174998 - Part 1: add setMtu() support in NetworkService. r=echen,smaug
...
--HG--
extra : commitid : HTYjKaoJwgb
2015-09-23 15:35:29 +08:00
Andrea Marchesini
5bd948cce6
Bug 1167465 - Exposing Allowed Audio Channels in System App's Window, r=alwu, r=fabrice
2015-09-23 08:12:52 +01:00
Chris Peterson
71920a9550
Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium
2015-09-22 21:39:03 -07:00
Sotaro Ikeda
f947a303a8
Bug 1206212 - Remove AUDIO_STREAM_FM after KK r=alwu
2015-09-21 17:43:41 -07:00
john1984
1348a3cf3f
Bug 1122376 - Support write SIM contact dialling number exceed 20 digits. r=echen
2015-09-20 19:57:00 +02:00
John Dai
c288c4bd19
Bug 1122376 - Support read SIM contact dialling number exceed 20 digits. r=echen
2015-09-20 19:48:00 +02:00
Shu-yu Guo
64db2267cf
Bug 1202902
- Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)
2015-09-15 11:19:45 -07:00
John Dai
47a53d2e56
Bug 1194149 - Continue importing contacts when there is no sufficient Type 2 USIM contact fields record. r=echen
...
--HG--
extra : rebase_source : 9428d31a0469c72648348ba9fcc2a70f74d030b2
2015-09-13 23:54:00 +02:00
Dave Hylands
59280e28fd
Bug 1188796 - Have MTP record modified timestamps when they're passed. r=alchen
...
Of the 3 popular host platforms, only Windows properly passes in the
modification timestamp of the file.
Under linux, it passes in an empty string, which then gets passed
to beginSendObject as zero. This patch now treats that as the current
date/time.
Under OSX, the Android FIle Transfer program passes in the date modified
and date created, but sets both of these fields to be the current
date/time and not the times from the files being copied.
Hl: Enter commit message. Lines beginning with 'HG:' are removed.
2015-09-14 17:38:19 -07:00
Jessica Jong
9a44f07882
Bug 1175817 - [NetworkManager] remove old default routes explicitly. r=echen,smaug
...
--HG--
extra : commitid : 6xQMx4MoezU
2015-09-11 15:26:58 +08:00
Phil Ringnalda
9565dedf7d
Merge m-c to m-i
...
CLOSED TREE
2015-09-10 15:30:31 -07:00
Jessica Jong
7b68e2f695
Bug 1197667 - [NetworkManager] Part 2: add test case for 'allNetworkInfo'. r=echen
...
--HG--
extra : commitid : BS7Cl4oJiHM
2015-09-10 14:50:21 +08:00
Jessica Jong
ac34ba9ae5
Bug 1197667 - [NetworkManager] Part 1: add missing implementation for 'allNetworkInfo'. r=echen
...
--HG--
extra : commitid : 3grnYPdElv
2015-09-10 14:50:19 +08:00
Garvan Keeley
5368b8a344
Bug 1200310 - No need to wifi+cell scan if stumble file is full, just trigger upload. r=jdm
2015-09-08 21:20:57 -04:00
Garvan Keeley
4c80c2ee2f
Bug 1200310 - Instead of thread guard flags for 'is stumbling' AND 'is uploading', we can use just one flag. r=jdm
2015-09-08 21:20:56 -04:00
Garvan Keeley
f4cd1eaf78
Bug 1200304 - Move stumbling code from gonkgps to MozStumbler.cpp. r=jdm
2015-09-08 21:20:56 -04:00
Garvan Keeley
2a57d41d3b
Bug 1199395 - FxOS Stumbling gzip the stumbles to store more data. r=jdm
2015-09-08 21:20:56 -04:00
Andrea Marchesini
cd4473d62f
Bug 1203426 - Rename StructuredCloneIPCHelper to StructuredCloneData, r=smaug
...
--HG--
rename : dom/ipc/StructuredCloneIPCHelper.cpp => dom/ipc/StructuredCloneData.cpp
rename : dom/ipc/StructuredCloneIPCHelper.h => dom/ipc/StructuredCloneData.h
2015-09-10 21:50:58 +01:00
Alphan Chen
2cb037411f
Bug 1154435 - [Stumbler] FxOS Geo Stumbling for Mozilla Location Service. r=jdm
2015-09-03 19:36:00 +02:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Ben Tian
f9389ddddf
Bug 1193379 - Create dom/bluetooth/common/webapi folder. r=joliu
...
--HG--
rename : dom/bluetooth/common/BluetoothAdapter.cpp => dom/bluetooth/common/webapi/BluetoothAdapter.cpp
rename : dom/bluetooth/common/BluetoothAdapter.h => dom/bluetooth/common/webapi/BluetoothAdapter.h
rename : dom/bluetooth/common/BluetoothClassOfDevice.cpp => dom/bluetooth/common/webapi/BluetoothClassOfDevice.cpp
rename : dom/bluetooth/common/BluetoothClassOfDevice.h => dom/bluetooth/common/webapi/BluetoothClassOfDevice.h
rename : dom/bluetooth/common/BluetoothDevice.cpp => dom/bluetooth/common/webapi/BluetoothDevice.cpp
rename : dom/bluetooth/common/BluetoothDevice.h => dom/bluetooth/common/webapi/BluetoothDevice.h
rename : dom/bluetooth/common/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.cpp
rename : dom/bluetooth/common/BluetoothDiscoveryHandle.h => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.h
rename : dom/bluetooth/common/BluetoothGatt.cpp => dom/bluetooth/common/webapi/BluetoothGatt.cpp
rename : dom/bluetooth/common/BluetoothGatt.h => dom/bluetooth/common/webapi/BluetoothGatt.h
rename : dom/bluetooth/common/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.cpp
rename : dom/bluetooth/common/BluetoothGattCharacteristic.h => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.h
rename : dom/bluetooth/common/BluetoothGattDescriptor.cpp => dom/bluetooth/common/webapi/BluetoothGattDescriptor.cpp
rename : dom/bluetooth/common/BluetoothGattDescriptor.h => dom/bluetooth/common/webapi/BluetoothGattDescriptor.h
rename : dom/bluetooth/common/BluetoothGattServer.cpp => dom/bluetooth/common/webapi/BluetoothGattServer.cpp
rename : dom/bluetooth/common/BluetoothGattServer.h => dom/bluetooth/common/webapi/BluetoothGattServer.h
rename : dom/bluetooth/common/BluetoothGattService.cpp => dom/bluetooth/common/webapi/BluetoothGattService.cpp
rename : dom/bluetooth/common/BluetoothGattService.h => dom/bluetooth/common/webapi/BluetoothGattService.h
rename : dom/bluetooth/common/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.cpp
rename : dom/bluetooth/common/BluetoothLeDeviceEvent.h => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.h
rename : dom/bluetooth/common/BluetoothManager.cpp => dom/bluetooth/common/webapi/BluetoothManager.cpp
rename : dom/bluetooth/common/BluetoothManager.h => dom/bluetooth/common/webapi/BluetoothManager.h
rename : dom/bluetooth/common/BluetoothPairingHandle.cpp => dom/bluetooth/common/webapi/BluetoothPairingHandle.cpp
rename : dom/bluetooth/common/BluetoothPairingHandle.h => dom/bluetooth/common/webapi/BluetoothPairingHandle.h
rename : dom/bluetooth/common/BluetoothPairingListener.cpp => dom/bluetooth/common/webapi/BluetoothPairingListener.cpp
rename : dom/bluetooth/common/BluetoothPairingListener.h => dom/bluetooth/common/webapi/BluetoothPairingListener.h
rename : dom/bluetooth/common/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.cpp
rename : dom/bluetooth/common/BluetoothPbapRequestHandle.h => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.h
2015-08-21 15:15:41 +08:00
Ben Tian
44c939383c
Bug 1193379 - Rename bluetooth2 folder to common. r=joliu
...
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothAdapter.cpp => dom/bluetooth/common/BluetoothAdapter.cpp
rename : dom/bluetooth/bluetooth2/BluetoothAdapter.h => dom/bluetooth/common/BluetoothAdapter.h
rename : dom/bluetooth/bluetooth2/BluetoothClassOfDevice.cpp => dom/bluetooth/common/BluetoothClassOfDevice.cpp
rename : dom/bluetooth/bluetooth2/BluetoothClassOfDevice.h => dom/bluetooth/common/BluetoothClassOfDevice.h
rename : dom/bluetooth/bluetooth2/BluetoothDevice.cpp => dom/bluetooth/common/BluetoothDevice.cpp
rename : dom/bluetooth/bluetooth2/BluetoothDevice.h => dom/bluetooth/common/BluetoothDevice.h
rename : dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/BluetoothDiscoveryHandle.cpp
rename : dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h => dom/bluetooth/common/BluetoothDiscoveryHandle.h
rename : dom/bluetooth/bluetooth2/BluetoothGatt.cpp => dom/bluetooth/common/BluetoothGatt.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGatt.h => dom/bluetooth/common/BluetoothGatt.h
rename : dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/BluetoothGattCharacteristic.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.h => dom/bluetooth/common/BluetoothGattCharacteristic.h
rename : dom/bluetooth/bluetooth2/BluetoothGattDescriptor.cpp => dom/bluetooth/common/BluetoothGattDescriptor.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattDescriptor.h => dom/bluetooth/common/BluetoothGattDescriptor.h
rename : dom/bluetooth/bluetooth2/BluetoothGattServer.cpp => dom/bluetooth/common/BluetoothGattServer.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattServer.h => dom/bluetooth/common/BluetoothGattServer.h
rename : dom/bluetooth/bluetooth2/BluetoothGattService.cpp => dom/bluetooth/common/BluetoothGattService.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattService.h => dom/bluetooth/common/BluetoothGattService.h
rename : dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/BluetoothLeDeviceEvent.cpp
rename : dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.h => dom/bluetooth/common/BluetoothLeDeviceEvent.h
rename : dom/bluetooth/bluetooth2/BluetoothManager.cpp => dom/bluetooth/common/BluetoothManager.cpp
rename : dom/bluetooth/bluetooth2/BluetoothManager.h => dom/bluetooth/common/BluetoothManager.h
rename : dom/bluetooth/bluetooth2/BluetoothPairingHandle.cpp => dom/bluetooth/common/BluetoothPairingHandle.cpp
rename : dom/bluetooth/bluetooth2/BluetoothPairingHandle.h => dom/bluetooth/common/BluetoothPairingHandle.h
rename : dom/bluetooth/bluetooth2/BluetoothPairingListener.cpp => dom/bluetooth/common/BluetoothPairingListener.cpp
rename : dom/bluetooth/bluetooth2/BluetoothPairingListener.h => dom/bluetooth/common/BluetoothPairingListener.h
rename : dom/bluetooth/bluetooth2/BluetoothProfileController.cpp => dom/bluetooth/common/BluetoothProfileController.cpp
rename : dom/bluetooth/bluetooth2/BluetoothProfileController.h => dom/bluetooth/common/BluetoothProfileController.h
rename : dom/bluetooth/bluetooth2/BluetoothReplyRunnable.cpp => dom/bluetooth/common/BluetoothReplyRunnable.cpp
rename : dom/bluetooth/bluetooth2/BluetoothReplyRunnable.h => dom/bluetooth/common/BluetoothReplyRunnable.h
rename : dom/bluetooth/bluetooth2/BluetoothService.cpp => dom/bluetooth/common/BluetoothService.cpp
rename : dom/bluetooth/bluetooth2/BluetoothService.h => dom/bluetooth/common/BluetoothService.h
2015-08-21 15:19:12 +08:00