Commit Graph

591 Commits

Author SHA1 Message Date
Ehsan Akhgari
dd45c6467c Bug 1300884 follow-up: Remove browser_alarms.js, landed on a CLOSED TREE 2016-09-07 15:22:21 -04:00
Nicholas Nethercote
34dcc7b852 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");

--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Ehsan Akhgari
d05eb37eea Bug 1299493 - Remove Navigator.get/hasFeature(); r=baku 2016-08-31 18:02:46 -04:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Jim Chen
347603e672 Bug 1292323 - Update usage of UsesNativeCallProxy; r=snorp
Remove uses of UsesNativeCallProxy and UsesGeckoThreadProxy, now that
they are not needed.

Remove cases where we had to invoke a call in a proxy, because the call
is now specified to be invoked directly in the WrapForJNI annotation,
without the need to go through the proxy.

For SmsManager and AlarmReceiver, we no longer need to manually dispatch
everything to the Gecko thread because that's now handled automatically.
2016-08-12 23:15:53 -04:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Jim Chen
ce45a595ab Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
e8bc59a87a Backed out changeset 684888aeee81 (bug 1287946) 2016-07-21 08:07:12 +02:00
Jim Chen
78f67d1f6f Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 00:42:26 -04:00
Thomas Zimmermann
d67ebc7b00 Bug 1276927: Add V4L ioctl 'VIDIOC_S_HW_FREQ_SEEK' if undefined by Linux, r=gsvelto
MozReview-Commit-ID: 5ZvrhwOyfYy
2016-06-16 08:43:51 +01:00
Sebastian Hengst
fad674d7d8 Backed out changeset 18924ea45917 (bug 1276927) 2016-06-15 12:23:56 +02:00
Thomas Zimmermann
652b70fbd0 Bug 1276927: Add V4L ioctl 'VIDIOC_S_HW_FREQ_SEEK' if undefined by Linux, r=gsvelto
MozReview-Commit-ID: 5ZvrhwOyfYy
2016-06-15 10:59:49 +01:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Wei-Cheng Pan
4743ce02cd Bug 1273079 - Use MOZ_MUST_USE in hal. r=gsvelto
MozReview-Commit-ID: 7VLDpz34DRu

--HG--
extra : transplant_source : O%9DK%DCOc%D8%CB%FD%EFf%04%C4%B4%DA%A2x%FF%88%99
2016-05-16 17:24:03 +08:00
Sebastian Hengst
2b06d394ac Backed out changeset a906d38b7c07 (bug 1273079) for bustage. r=backout 2016-05-19 15:10:49 +02:00
Wei-Cheng Pan
e631c34c1e Bug 1273079 - Use MOZ_MUST_USE in hal. r=gsvelto
MozReview-Commit-ID: 7VLDpz34DRu

--HG--
extra : rebase_source : 86f03dfe96645d49eb62adcc88cea9474344bc62
2016-05-16 17:24:03 +08:00
Alexandre Lissy
20b739aeda Bug 1273520 - NS_NewRunnable* renaming and include task.h r=fabrice
MozReview-Commit-ID: BcAboKGMr3a

--HG--
extra : rebase_source : 6c5050527d8dffbce4a5e867bd48254a1041e657
2016-05-18 18:25:35 +02:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Thomas Zimmermann
42c137c01d Bug 1268432: Replace |Task| with |Runnable| in B2G code r=fabrice
This patch converts the remaining B2G code from |Task| to |Runnable| and
fixes related API calls. This is a follow-up to bug 1266595.
2016-05-02 10:27:15 -07:00
Gregor Wagner
acecad8f82 Bug 1267577 - Move nsRunnable to mozilla::Runnable. r=gsvelto 2016-04-27 12:05:40 +02:00
Thomas Zimmermann
c224c5ab31 Bug 1260672: Remove 'nsAutoPtr.h' and clean up includes of Gonk diskspace watcher, r=gsvelto 2016-03-30 13:18:00 +02:00
Thomas Zimmermann
4619f2620c Bug 1260672: Use |UniquePtr| for Gonk alarms, r=gsvelto 2016-03-30 13:18:00 +02:00
Thomas Zimmermann
0426b37d30 Bug 1260672: Use |UniquePtr| for Gonk sensors, r=gsvelto 2016-03-30 13:18:00 +02:00
Kyle Huey
d9265a3eaf Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj 2016-03-28 10:28:15 -07:00
sajitk
823704b8d6 Bug 1219482: Replace PRLogModuleInfo with LazyLogModule in various files.r=benjamin 2016-01-28 10:35:00 -08:00
Gabriele Svelto
37f3999f8b Bug 1253571 - Remove the remaining uses of ScopedDeletePtr and ScopedFreePtr from the HAL and MTP code r=dhylands 2016-03-04 15:15:38 +01:00
Gabriele Svelto
bebcf8822a Bug 1251179 - Ensure that the lock protecting the CPU sleep functionality is always valid r=dhylands 2016-02-27 14:34:51 +01:00
Trevor Saunders
46aa830ced bug 1249738 - make sSystemTimezoneChangeObservers a function static r=dhylands 2016-02-26 11:11:11 -05:00
Trevor Saunders
39b0d0189f bug 1249738 - make sSystemClockChangeObservers a function static r=dhylands 2016-02-26 11:11:10 -05:00
Trevor Saunders
2179cbb817 bug 1249738 - make sWakeLockObservers a function static r=dhylands 2016-02-26 11:11:10 -05:00
Trevor Saunders
cef2ea492e bug 1249738 - make sScreenConfigurationObservers a function static r=dhylands 2016-02-26 11:11:10 -05:00
Trevor Saunders
e7220223eb bug 1249738 - make sNetworkObservers a function static r=dhylands 2016-02-26 11:11:10 -05:00
Trevor Saunders
34ed828351 bug 1249738 - make sBatteryObservers a function static r=dhylands 2016-02-26 11:11:09 -05:00
Mantaroh Yoshinaga
49324e6f7d Bug 1248339 - fix header sort order of hal. r=gsvelto 2016-02-15 07:33:00 +01:00
Thomas Zimmermann
afdc357587 Bug 1194721: Support Gonk sensors daemon, r=gsvelto
This patch adds th state machine for supporting the Gonk sensors
daemon in Gecko. The daemon gets started when the first sensor is
enabled. Sensors can be enabled and disabled at will. The daemon
will send events about detected sensors and sensor events. Gecko's
state machine receives themand forwards them as DOM events.

The old support for device sensors is still present for devices without
sensorsd. A future patch will remove this code.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
4d26ccee63 Bug 1194721: Add interface for Gonk sensors daemon, r=gsvelto
This patch adds the interface for the Gonk sensors daemon. There
are only two major interfaces: connect and disconnect. The sensors
daemon is started before connecting and stopped after a disconnect.

Connections are race-free: we first set up a listen socket and let
Gecko listen for connections. Then the daemon gets started with the
socket's address as parameter. When the daemon connects to the
socket, Gecko will continue the startup and signal success to the
caller.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
5cefc72986 Bug 1194721: Add poll interface and module for Gonk sensors, r=gsvelto
The sensor daemon's poll service reads events from the device's
sensors. This patch adds Gecko support for this service. Gecko
receives information about existing sensors and can subscribe to
sensor events. Events will be delivered for each enabled sensor.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
a635d5ed48 Bug 1194721: Add registry interface and module for Gonk sensors, r=gsvelto
A system daemon can contain several services. One of them is the registry
service that manages all other services. This patch adds support for this
service in the Gonk sensors daemon.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
24f81344e9 Bug 1194721: Add helpers for Gonk sensors daemon, r=gsvelto
This patch adds helpers for using the Gonk sensors daemon. The types
and functions allow for packing and unpacking messages of the daemon's
IPC protocol.
2016-02-04 12:35:13 +01:00
Carsten "Tomcat" Book
a7bbc5b9ff Backed out changeset 2a7dbf51f1e8 (bug 1194721) 2016-02-03 16:24:26 +01:00
Carsten "Tomcat" Book
ff644fd078 Backed out changeset f817794c422b (bug 1194721) 2016-02-03 16:24:25 +01:00
Carsten "Tomcat" Book
ab6b9d0590 Backed out changeset 6a5db0961a0a (bug 1194721) 2016-02-03 16:24:23 +01:00
Carsten "Tomcat" Book
aca3e4db63 Backed out changeset 15a9b3c68084 (bug 1194721) 2016-02-03 16:24:22 +01:00
Carsten "Tomcat" Book
dbe468defa Backed out changeset 8adcb4e83cf4 (bug 1194721) 2016-02-03 16:24:20 +01:00
Thomas Zimmermann
f871eee080 Bug 1194721: Support Gonk sensors daemon, r=gsvelto
This patch adds th state machine for supporting the Gonk sensors
daemon in Gecko. The daemon gets started when the first sensor is
enabled. Sensors can be enabled and disabled at will. The daemon
will send events about detected sensors and sensor events. Gecko's
state machine receives themand forwards them as DOM events.

The old support for device sensors is still present for devices without
sensorsd. A future patch will remove this code.
2016-02-03 15:16:00 +01:00
Thomas Zimmermann
3b2ccfc21f Bug 1194721: Add interface for Gonk sensors daemon, r=gsvelto
This patch adds the interface for the Gonk sensors daemon. There
are only two major interfaces: connect and disconnect. The sensors
daemon is started before connecting and stopped after a disconnect.

Connections are race-free: we first set up a listen socket and let
Gecko listen for connections. Then the daemon gets started with the
socket's address as parameter. When the daemon connects to the
socket, Gecko will continue the startup and signal success to the
caller.
2016-02-03 15:16:00 +01:00
Thomas Zimmermann
46ae306967 Bug 1194721: Add poll interface and module for Gonk sensors, r=gsvelto
The sensor daemon's poll service reads events from the device's
sensors. This patch adds Gecko support for this service. Gecko
receives information about existing sensors and can subscribe to
sensor events. Events will be delivered for each enabled sensor.
2016-02-03 15:16:00 +01:00
Thomas Zimmermann
91bb68fbc4 Bug 1194721: Add registry interface and module for Gonk sensors, r=gsvelto
A system daemon can contain several services. One of them is the registry
service that manages all other services. This patch adds support for this
service in the Gonk sensors daemon.
2016-02-03 15:16:00 +01:00