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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.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/DeviceOrientationController.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
index 1e9ef4f4f1116c732c5c1eccb00a20717199221c..cf71466a1d0058d4a7c042cd013b65293ade12ee 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
@@ -59,7 +59,7 @@ void DeviceOrientationController::didAddEventListener(LocalDOMWindow* window, co
if (document().frame()) {
String errorMessage;
- if (document().isPrivilegedContext(errorMessage)) {
+ if (document().isSecureContext(errorMessage)) {
UseCounter::count(document().frame(), UseCounter::DeviceOrientationSecureOrigin);
} else {
UseCounter::countDeprecation(document().frame(), UseCounter::DeviceOrientationInsecureOrigin);

Powered by Google App Engine
This is Rietveld 408576698