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

Unified Diff: chrome/browser/cookies_tree_model.cc

Issue 2868059: Preparatory work for adding content exceptions from the tab cookie view. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: 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
« no previous file with comments | « chrome/browser/cookies_tree_model.h ('k') | chrome/browser/host_content_settings_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cookies_tree_model.cc
diff --git a/chrome/browser/cookies_tree_model.cc b/chrome/browser/cookies_tree_model.cc
index 239a36d15e891f6a237915474373ae997fdda9d3..fad1e472a84ed66d7b14878018d7d686d2b458cf 100644
--- a/chrome/browser/cookies_tree_model.cc
+++ b/chrome/browser/cookies_tree_model.cc
@@ -237,6 +237,14 @@ CookieTreeAppCachesNode* CookieTreeOriginNode::GetOrCreateAppCachesNode() {
return appcaches_child_;
}
+void CookieTreeOriginNode::CreateContentException(
+ HostContentSettingsMap* content_settings, ContentSetting setting) {
+ std::wstring title(GetTitle());
+ content_settings->AddExceptionForURL(GURL(WideToUTF16(title)),
+ CONTENT_SETTINGS_TYPE_COOKIES,
+ setting);
+}
+
///////////////////////////////////////////////////////////////////////////////
// CookieTreeCookiesNode, public:
« no previous file with comments | « chrome/browser/cookies_tree_model.h ('k') | chrome/browser/host_content_settings_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698