summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cookies_tree_model.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 09:41:25 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 09:41:25 +0000
commitcc2724b7c0fa92466b26eca1e8851d53ab0649b4 (patch)
treec9956e77301cf2c7df0e1194db0d7f9735ccda87 /chrome/browser/cookies_tree_model.cc
parentcbd426185e5893b46084922ea4c6c766cd94bc26 (diff)
downloadchromium_src-cc2724b7c0fa92466b26eca1e8851d53ab0649b4.zip
chromium_src-cc2724b7c0fa92466b26eca1e8851d53ab0649b4.tar.gz
chromium_src-cc2724b7c0fa92466b26eca1e8851d53ab0649b4.tar.bz2
compile fix.
accidentally committed an old version. tbr=jochen Review URL: http://codereview.chromium.org/3044010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cookies_tree_model.cc')
-rw-r--r--chrome/browser/cookies_tree_model.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/cookies_tree_model.cc b/chrome/browser/cookies_tree_model.cc
index a51d2cb..fad1e47 100644
--- a/chrome/browser/cookies_tree_model.cc
+++ b/chrome/browser/cookies_tree_model.cc
@@ -237,11 +237,12 @@ CookieTreeAppCachesNode* CookieTreeOriginNode::GetOrCreateAppCachesNode() {
return appcaches_child_;
}
-void CookieTreeOriginNode::CreateContentException() {
-// profile_->GetHostContentSettingsMap()->AddExceptionForURL(
-// ,
-// CONTENT_,
-// radio_index == 0 ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_BLOCK);
+void CookieTreeOriginNode::CreateContentException(
+ HostContentSettingsMap* content_settings, ContentSetting setting) {
+ std::wstring title(GetTitle());
+ content_settings->AddExceptionForURL(GURL(WideToUTF16(title)),
+ CONTENT_SETTINGS_TYPE_COOKIES,
+ setting);
}
///////////////////////////////////////////////////////////////////////////////