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

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

Issue 2353493002: [Sensors] Allow Sensor API only on secure top-level browsing contexts and add frequency checks (Closed)
Patch Set: Comments from Tim Created 4 years, 3 months 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
Index: third_party/WebKit/Source/modules/sensor/Sensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.h b/third_party/WebKit/Source/modules/sensor/Sensor.h
index cb7cb8be2e459a6c4daa5b3742d6988b7c93f238..39c21752c7fd804a63ce6ba4851c1b69e9c7961c 100644
--- a/third_party/WebKit/Source/modules/sensor/Sensor.h
+++ b/third_party/WebKit/Source/modules/sensor/Sensor.h
@@ -64,7 +64,7 @@ public:
DECLARE_VIRTUAL_TRACE();
protected:
- Sensor(ExecutionContext*, const SensorOptions&, device::mojom::blink::SensorType);
+ Sensor(ScriptState*, const SensorOptions&, ExceptionState&, device::mojom::blink::SensorType);
virtual SensorReading* createSensorReading(SensorProxy*) = 0;
using SensorConfigurationPtr = device::mojom::blink::SensorConfigurationPtr;

Powered by Google App Engine
This is Rietveld 408576698