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

Unified Diff: content/browser/push_messaging/push_messaging_message_filter.cc

Issue 1093923005: Swap hasPermission with permissionState in browser_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/browser/push_messaging/push_messaging_message_filter.cc
diff --git a/content/browser/push_messaging/push_messaging_message_filter.cc b/content/browser/push_messaging/push_messaging_message_filter.cc
index cd2403e53bccbb2f5bfc7793626da1dd50bc1ba1..c1badba4ce10eb46264030975cc33b87aaa534e3 100644
--- a/content/browser/push_messaging/push_messaging_message_filter.cc
+++ b/content/browser/push_messaging/push_messaging_message_filter.cc
@@ -783,7 +783,7 @@ void PushMessagingMessageFilter::Core::GetPermissionStatusOnUI(
user_visible);
} else if (is_incognito()) {
// Return default, so the website can't detect incognito mode.
- permission_status = blink::WebPushPermissionStatusDefault;
+ permission_status = blink::WebPushPermissionStatusPrompt;
} else {
Send(new PushMessagingMsg_GetPermissionStatusError(request_id));
return;

Powered by Google App Engine
This is Rietveld 408576698