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); |