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

Unified Diff: third_party/WebKit/Source/modules/notifications/Notification.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Created 3 years, 8 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 0b801f6aa4f35c060224e76f7f23af783679f7a8..230146f74824838d50933d106f7a0b530c66358a 100644
--- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
+++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
@@ -355,7 +355,7 @@
}
String Notification::permission(ScriptState* script_state) {
- ExecutionContext* context = script_state->GetExecutionContext();
+ ExecutionContext* context = ExecutionContext::From(script_state);
return PermissionString(
NotificationManager::From(context)->GetPermissionStatus(context));
}
@@ -363,7 +363,7 @@
ScriptPromise Notification::requestPermission(
ScriptState* script_state,
NotificationPermissionCallback* deprecated_callback) {
- ExecutionContext* context = script_state->GetExecutionContext();
+ ExecutionContext* context = ExecutionContext::From(script_state);
if (!context->IsSecureContext()) {
Deprecation::CountDeprecation(
context, UseCounter::kNotificationPermissionRequestedInsecureOrigin);
« no previous file with comments | « third_party/WebKit/Source/modules/nfc/NFC.cpp ('k') | third_party/WebKit/Source/modules/notifications/NotificationManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698