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

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

Issue 2908133003: Split GetPermissionStatus into GetPermissionStatusForFrame/Worker
Patch Set: Split GetPermissionStatus into GetPermissionStatusForFrame/Worker Created 3 years, 7 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 493193597cbc7dfacf529d940daaa46ff46ffcad..45d114461d4adf987e6de8a57d21ddac6b35ff1e 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
@@ -119,10 +119,12 @@ void LayoutTestPushMessagingService::GetSubscriptionInfo(
blink::WebPushPermissionStatus
LayoutTestPushMessagingService::GetPermissionStatus(const GURL& origin,
bool user_visible) {
- return ToWebPushPermissionStatus(LayoutTestContentBrowserClient::Get()
- ->browser_context()
- ->GetPermissionManager()
- ->GetPermissionStatus(PermissionType::PUSH_MESSAGING, origin, origin));
+ return ToWebPushPermissionStatus(
+ LayoutTestContentBrowserClient::Get()
+ ->browser_context()
+ ->GetPermissionManager()
+ ->GetPermissionStatusForWorker(PermissionType::PUSH_MESSAGING,
+ origin));
benwells 2017/05/31 01:48:10 Again, this is weird but as it's a test I can live
raymes 2017/06/01 02:54:40 Done.
}
bool LayoutTestPushMessagingService::SupportNonVisibleMessages() {

Powered by Google App Engine
This is Rietveld 408576698