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

Unified Diff: components/content_settings/core/browser/host_content_settings_map.cc

Issue 1554513002: Refactoring usage of GetWebSiteSetting() code for SetNarrowestContentSetting(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 4 years, 12 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/content_settings/core/browser/host_content_settings_map.cc
diff --git a/components/content_settings/core/browser/host_content_settings_map.cc b/components/content_settings/core/browser/host_content_settings_map.cc
index fd9cbbf37d03f61f0e2e1c75163c2d63f0875b0d..345820fc85d3a2e9eff2aa0a113f99f568b02a13 100644
--- a/components/content_settings/core/browser/host_content_settings_map.cc
+++ b/components/content_settings/core/browser/host_content_settings_map.cc
@@ -360,8 +360,8 @@ void HostContentSettingsMap::SetNarrowestContentSetting(
// the existing rule is more specific, than change the existing rule instead
// of creating a new rule that would be hidden behind the existing rule.
content_settings::SettingInfo info;
- scoped_ptr<base::Value> v =
- GetWebsiteSetting(primary_url, secondary_url, type, std::string(), &info);
+ scoped_ptr<base::Value> v = GetWebsiteSettingInternal(
+ primary_url, secondary_url, type, std::string(), &info);
DCHECK_EQ(content_settings::SETTING_SOURCE_USER, info.source);
ContentSettingsPattern narrow_primary = primary_pattern;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698