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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.cc

Issue 1726323002: Have Permission{Manager,Service} use Origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 9 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: content/shell/browser/layout_test/layout_test_notification_manager.cc
diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.cc b/content/shell/browser/layout_test/layout_test_notification_manager.cc
index 09a347312b6cf96a30f053a8a80366a1abdc3859..38931094451bb7a5f90c93e5b3f4dbf102a159fa 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
@@ -212,12 +212,13 @@ void LayoutTestNotificationManager::ReplaceNotificationIfNeeded(
blink::WebNotificationPermission
LayoutTestNotificationManager::CheckPermission(const GURL& origin) {
- return ToWebNotificationPermission(LayoutTestContentBrowserClient::Get()
- ->GetLayoutTestBrowserContext()
- ->GetLayoutTestPermissionManager()
- ->GetPermissionStatus(PermissionType::NOTIFICATIONS,
- origin,
- origin));
+ const url::Origin actual_origin(origin);
+ return ToWebNotificationPermission(
+ LayoutTestContentBrowserClient::Get()
+ ->GetLayoutTestBrowserContext()
+ ->GetLayoutTestPermissionManager()
+ ->GetPermissionStatus(PermissionType::NOTIFICATIONS, actual_origin,
+ actual_origin));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698