Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Unified Diff: third_party/WebKit/Source/modules/sensor/Sensor.idl

Issue 2476253002: [Sensors] Add an UMA histogram for Generic Sensor function calls (Closed)
Patch Set: rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/sensor/Sensor.idl
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.idl b/third_party/WebKit/Source/modules/sensor/Sensor.idl
index c58a10d135c7b871708566d0fdb1578d2c0b23cc..f02148075d613c5a634a79a340b8c98f6457dc7e 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.idl
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.idl
@@ -20,8 +20,8 @@ enum SensorState {
readonly attribute SensorState state;
readonly attribute SensorReading? reading;
- [CallWith=ScriptState, RaisesException] void start();
- [CallWith=ScriptState, RaisesException] void stop();
+ [CallWith=ScriptState, RaisesException, MeasureAs=GenericSensorStart] void start();
+ [CallWith=ScriptState, RaisesException, MeasureAs=GenericSensorStop] void stop();
attribute EventHandler onerror;
attribute EventHandler onchange;
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698