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

Unified Diff: chrome/browser/cocoa/content_exceptions_window_controller_unittest.mm

Issue 2963006: Remove the cookie prompt from the settings UI and migrate prefs from ask to block. (Closed)
Patch Set: updates Created 10 years, 5 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/cocoa/content_exceptions_window_controller_unittest.mm
diff --git a/chrome/browser/cocoa/content_exceptions_window_controller_unittest.mm b/chrome/browser/cocoa/content_exceptions_window_controller_unittest.mm
index 730a0453bc4402cf76919ed70f04ba914ba2664a..2c842b5c69eb23dbb475e2a0243dbaf7b18d4b47 100644
--- a/chrome/browser/cocoa/content_exceptions_window_controller_unittest.mm
+++ b/chrome/browser/cocoa/content_exceptions_window_controller_unittest.mm
@@ -220,7 +220,7 @@ TEST_F(ContentExceptionsWindowControllerTest, AddExistingEditAdd) {
TEST_F(ContentExceptionsWindowControllerTest, AddExistingDoesNotOverwrite) {
settingsMap_->SetContentSetting(HostContentSettingsMap::Pattern("myhost"),
CONTENT_SETTINGS_TYPE_COOKIES,
- CONTENT_SETTING_ASK);
+ CONTENT_SETTING_SESSION_ONLY);
ContentExceptionsWindowController* controller =
GetController(CONTENT_SETTINGS_TYPE_COOKIES);
@@ -235,7 +235,7 @@ TEST_F(ContentExceptionsWindowControllerTest, AddExistingDoesNotOverwrite) {
settingsMap_->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_COOKIES,
&settings);
EXPECT_EQ(1u, settings.size());
- EXPECT_EQ(CONTENT_SETTING_ASK, settings[0].second);
+ EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, settings[0].second);
}

Powered by Google App Engine
This is Rietveld 408576698