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

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

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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_settings_dialog_controller_unittest.mm
===================================================================
--- chrome/browser/cocoa/content_settings_dialog_controller_unittest.mm (revision 59533)
+++ chrome/browser/cocoa/content_settings_dialog_controller_unittest.mm (working copy)
@@ -58,9 +58,7 @@
settingsMap_->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_COOKIES,
CONTENT_SETTING_BLOCK);
- // Since the cookie prompt is disabled per default, the index of the block
- // radio is actually 1 == kCookieAskIndex.
- EXPECT_EQ([controller_ cookieSettingIndex], kCookieAskIndex);
+ EXPECT_EQ([controller_ cookieSettingIndex], kCookieDisabledIndex);
// Change dialog property, check setting.
NSInteger setting;
@@ -69,9 +67,7 @@
settingsMap_->GetDefaultContentSetting(CONTENT_SETTINGS_TYPE_COOKIES);
EXPECT_EQ(setting, CONTENT_SETTING_ALLOW);
- // Since the cookie prompt is disabled per default, the index of the block
- // radio is actually 1 == kCookieAskIndex.
- [controller_ setCookieSettingIndex:kCookieAskIndex];
+ [controller_ setCookieSettingIndex:kCookieDisabledIndex];
setting =
settingsMap_->GetDefaultContentSetting(CONTENT_SETTINGS_TYPE_COOKIES);
EXPECT_EQ(setting, CONTENT_SETTING_BLOCK);

Powered by Google App Engine
This is Rietveld 408576698