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