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

Unified Diff: third_party/WebKit/Source/modules/notifications/Notification.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/notifications/Notification.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/Notification.cpp b/third_party/WebKit/Source/modules/notifications/Notification.cpp
index f2fa76b5755bfcf517d8b17e152b9eb79f91c574..ff8630b4bf2579c15a176d685dfb01cb453e1592 100644
--- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
+++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
@@ -91,8 +91,7 @@ Notification* Notification::create(ExecutionContext* context,
return nullptr;
}
- String insecureOriginMessage;
- if (context->isSecureContext(insecureOriginMessage)) {
+ if (context->isSecureContext()) {
UseCounter::count(context, UseCounter::NotificationSecureOrigin);
if (context->isDocument())
UseCounter::countCrossOriginIframe(

Powered by Google App Engine
This is Rietveld 408576698