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

Unified Diff: chrome/browser/notifications/platform_notification_service_interactive_uitest.cc

Issue 2020063003: Use GetPermissionStatus instead of DesktopNotificationProfileUtil::GetContentSetting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove embber param for notifications Created 4 years, 6 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: chrome/browser/notifications/platform_notification_service_interactive_uitest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc b/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc
index 71faf4c6454d7ce72997d59e8298702561cc1ecf..5e6ca28abcce580f13e2e4b59f6f5a39846f8486 100644
--- a/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc
+++ b/chrome/browser/notifications/platform_notification_service_interactive_uitest.cc
@@ -140,9 +140,10 @@ void PlatformNotificationServiceBrowserTest::
GURL origin = TestPageUrl().GetOrigin();
DesktopNotificationProfileUtil::GrantPermission(browser()->profile(), origin);
- ASSERT_EQ(CONTENT_SETTING_ALLOW,
- DesktopNotificationProfileUtil::GetContentSetting(
- browser()->profile(), origin));
+ ASSERT_EQ(blink::mojom::PermissionStatus::GRANTED,
+ PermissionManager::Get(browser()->profile())
+ ->GetPermissionStatus(content::PermissionType::NOTIFICATIONS,
+ origin, origin));
}
void PlatformNotificationServiceBrowserTest::NavigateToTestPage(

Powered by Google App Engine
This is Rietveld 408576698