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/tab_contents/tab_contents.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/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 725db75..25afd700 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -2974,11 +2974,11 @@ void TabContents::Observe(NotificationType type, GURL entry_url; if (entry) entry_url = entry->url(); - Source<HostContentSettingsMap> content_settings(source); if (settings_details.ptr()->update_all() || settings_details.ptr()->pattern().Matches(entry_url)) { render_view_host()->SendContentSettings(entry_url, - content_settings.ptr()->GetContentSettings(entry_url)); + profile()->GetHostContentSettingsMap()-> + GetContentSettings(entry_url)); } break; } |