diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 07:11:23 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 07:11:23 +0000 |
commit | b9a4ea7fbdc54868b60d50bc5fade451718dec23 (patch) | |
tree | 952098c43264b79a6b196af301d2ca51232a3e33 /chrome/browser/cookie_modal_dialog.cc | |
parent | 4930760d08e0d3afef5e99684fc7450b15d0cf78 (diff) | |
download | chromium_src-b9a4ea7fbdc54868b60d50bc5fade451718dec23.zip chromium_src-b9a4ea7fbdc54868b60d50bc5fade451718dec23.tar.gz chromium_src-b9a4ea7fbdc54868b60d50bc5fade451718dec23.tar.bz2 |
Allow content setting changes in incognito mode.
This removes the logic to disable the "remeber" functions in the UI elements (basically reverting r44084, but leaves the incognito host content setting map in place. Changes to this map are allowed but do not get stored in preferences.
BUG=44480
TEST=none
Review URL: http://codereview.chromium.org/2811025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cookie_modal_dialog.cc')
-rw-r--r-- | chrome/browser/cookie_modal_dialog.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/cookie_modal_dialog.cc b/chrome/browser/cookie_modal_dialog.cc index ed86178..575ace5 100644 --- a/chrome/browser/cookie_modal_dialog.cc +++ b/chrome/browser/cookie_modal_dialog.cc @@ -99,8 +99,7 @@ bool CookiePromptModalDialog::IsValid() { void CookiePromptModalDialog::AllowSiteData(bool remember, bool session_expire) { - DCHECK(!remember || DecisionPersistable()); - if (remember && DecisionPersistable()) { + if (remember) { // Make sure there is no entry that would override the pattern we are about // to insert for exactly this URL. host_content_settings_map_->SetContentSetting( @@ -118,8 +117,7 @@ void CookiePromptModalDialog::AllowSiteData(bool remember, } void CookiePromptModalDialog::BlockSiteData(bool remember) { - DCHECK(!remember || DecisionPersistable()); - if (remember && DecisionPersistable()) { + if (remember) { // Make sure there is no entry that would override the pattern we are about // to insert for exactly this URL. host_content_settings_map_->SetContentSetting( @@ -146,7 +144,3 @@ int CookiePromptModalDialog::GetDialogButtons() { return MessageBoxFlags::DIALOGBUTTON_OK | MessageBoxFlags::DIALOGBUTTON_CANCEL; } - -bool CookiePromptModalDialog::DecisionPersistable() { - return !host_content_settings_map_->IsOffTheRecord(); -} |