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

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

Issue 2567173002: Clean up Document::isSecureContext (Closed)
Patch Set: Created 4 years 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 7d39daba850d3cdf0694fea9d38988564ff884a7..0390ae33f29989458d08b3a3603224d64a819f24 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp
@@ -52,8 +52,7 @@ void DeviceOrientationController::didAddEventListener(
return;
if (document().frame()) {
- String errorMessage;
- if (document().isSecureContext(errorMessage)) {
+ if (document().isSecureContext()) {
UseCounter::count(document().frame(),
UseCounter::DeviceOrientationSecureOrigin);
} else {

Powered by Google App Engine
This is Rietveld 408576698