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

Unified Diff: third_party/WebKit/Source/modules/sensor/AmbientLightSensor.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/AmbientLightSensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h
index 868bf1652dace56346a5e18b9195afcf7c7b4792..77d3b1b90d274571f17eb92676ed1b3ec3cd457b 100644
--- a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h
@@ -15,15 +15,15 @@ class AmbientLightSensor final : public Sensor {
USING_GARBAGE_COLLECTED_MIXIN(AmbientLightSensor);
DEFINE_WRAPPERTYPEINFO();
public:
- static AmbientLightSensor* create(ExecutionContext*, const SensorOptions&);
- static AmbientLightSensor* create(ExecutionContext*);
+ static AmbientLightSensor* create(ScriptState*, const SensorOptions&, ExceptionState&);
+ static AmbientLightSensor* create(ScriptState*, ExceptionState&);
AmbientLightSensorReading* reading() const;
DECLARE_VIRTUAL_TRACE();
private:
- AmbientLightSensor(ExecutionContext*, const SensorOptions&);
+ AmbientLightSensor(ScriptState*, const SensorOptions&, ExceptionState&);
// Sensor overrides.
SensorReading* createSensorReading(SensorProxy*) override;
SensorConfigurationPtr createSensorConfig(const SensorOptions&, const SensorConfiguration& defaultConfig) override;

Powered by Google App Engine
This is Rietveld 408576698