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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp

Issue 1373773003: Implement 'window.isSecureContext'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: document. Created 5 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/device_orientation/DeviceMotionController.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp
index b748f6f1ef39921c4ad2cddf7354f2d913c461b5..bd5a1071b5b0ab845022fcd7a94fc7e81d5f1d04 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionController.cpp
@@ -52,7 +52,7 @@ void DeviceMotionController::didAddEventListener(LocalDOMWindow* window, const A
if (document().frame()) {
String errorMessage;
- if (document().isPrivilegedContext(errorMessage)) {
+ if (document().isSecureContext(errorMessage)) {
UseCounter::count(document().frame(), UseCounter::DeviceMotionSecureOrigin);
} else {
UseCounter::countDeprecation(document().frame(), UseCounter::DeviceMotionInsecureOrigin);

Powered by Google App Engine
This is Rietveld 408576698