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

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: Clarify and test Origin.empty_. Created 4 years, 10 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 701b24b9fb6be227118e9e0cb4d2aac1f7b83c99..b047fe2e3d3440bd8cc5f6d6a6d301e4f5283e6f 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