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

Unified Diff: content/shell/browser/layout_test/layout_test_push_messaging_service.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_push_messaging_service.cc
diff --git a/content/shell/browser/layout_test/layout_test_push_messaging_service.cc b/content/shell/browser/layout_test/layout_test_push_messaging_service.cc
index 11554e94baa11c1d8698777aae352b481c3e29b9..4d3b09f84247cca86ce45cf1bbacd550af0ab1f8 100644
--- a/content/shell/browser/layout_test/layout_test_push_messaging_service.cc
+++ b/content/shell/browser/layout_test/layout_test_push_messaging_service.cc
@@ -113,10 +113,13 @@ void LayoutTestPushMessagingService::GetEncryptionInfo(
blink::WebPushPermissionStatus
LayoutTestPushMessagingService::GetPermissionStatus(const GURL& origin,
bool user_visible) {
- return ToWebPushPermissionStatus(LayoutTestContentBrowserClient::Get()
- ->browser_context()
- ->GetPermissionManager()
- ->GetPermissionStatus(PermissionType::PUSH_MESSAGING, origin, origin));
+ const url::Origin actual_origin(origin);
+ return ToWebPushPermissionStatus(
+ LayoutTestContentBrowserClient::Get()
+ ->browser_context()
+ ->GetPermissionManager()
+ ->GetPermissionStatus(PermissionType::PUSH_MESSAGING, actual_origin,
+ actual_origin));
}
bool LayoutTestPushMessagingService::SupportNonVisibleMessages() {

Powered by Google App Engine
This is Rietveld 408576698