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

Unified Diff: third_party/WebKit/Source/modules/notifications/Notification.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/notifications/Notification.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/Notification.cpp b/third_party/WebKit/Source/modules/notifications/Notification.cpp
index 99649be817cc69e5d2dded6afed7f6f6d907c9fa..6f89e3d5d409a77cf1647fc78fe16491450b417d 100644
--- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
+++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
@@ -80,7 +80,7 @@ Notification* Notification::create(ExecutionContext* context, const String& titl
}
String insecureOriginMessage;
- UseCounter::Feature feature = context->isPrivilegedContext(insecureOriginMessage)
+ UseCounter::Feature feature = context->isSecureContext(insecureOriginMessage)
? UseCounter::NotificationSecureOrigin
: UseCounter::NotificationInsecureOrigin;

Powered by Google App Engine
This is Rietveld 408576698