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

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

Issue 1575623002: Disable Web Notifications in Incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permfix
Patch Set: No Profile* in WebsiteSettingsPopupView Created 4 years, 11 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/notification_browsertest.cc
diff --git a/chrome/browser/notifications/notification_browsertest.cc b/chrome/browser/notifications/notification_browsertest.cc
index 19ec3596635463c6115997840ef06b7a48868e1c..a120e06b00e388a6ba91ac16a58ad8574acade7d 100644
--- a/chrome/browser/notifications/notification_browsertest.cc
+++ b/chrome/browser/notifications/notification_browsertest.cc
@@ -668,18 +668,6 @@ IN_PROC_BROWSER_TEST_F(
EXPECT_EQ(0U, settings.size());
}
-IN_PROC_BROWSER_TEST_F(NotificationsTest, TestIncognitoNotification) {
- ASSERT_TRUE(embedded_test_server()->Start());
-
- // Test notifications in incognito window.
- Browser* browser = CreateIncognitoBrowser();
- ui_test_utils::NavigateToURL(browser, GetTestPageURL());
- browser->tab_strip_model()->ActivateTabAt(0, true);
- ASSERT_TRUE(RequestAndAcceptPermission(browser));
- CreateSimpleNotification(browser, true);
- ASSERT_EQ(1, GetNotificationCount());
-}
-
IN_PROC_BROWSER_TEST_F(NotificationsTest, TestCloseTabWithPermissionRequestUI) {
ASSERT_TRUE(embedded_test_server()->Start());

Powered by Google App Engine
This is Rietveld 408576698