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

Unified Diff: chrome/browser/ui/webui/plugins/plugins_handler.cc

Issue 1818843002: Rename SetContentSetting() to SetContentSettingCustomScope() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment alignment Created 4 years, 9 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
Index: chrome/browser/ui/webui/plugins/plugins_handler.cc
diff --git a/chrome/browser/ui/webui/plugins/plugins_handler.cc b/chrome/browser/ui/webui/plugins/plugins_handler.cc
index ded2d1653d8b7ad3188e3012105cb4f839a8421a..8c3f17a12a67d121782945d3c7564becf99b7c8c 100644
--- a/chrome/browser/ui/webui/plugins/plugins_handler.cc
+++ b/chrome/browser/ui/webui/plugins/plugins_handler.cc
@@ -163,10 +163,12 @@ void PluginsHandler::SaveShowDetailsToPrefs(bool details_mode) {
void PluginsHandler::SetPluginAlwaysAllowed(const mojo::String& plugin,
bool allowed) {
Profile* profile = Profile::FromWebUI(web_ui_);
- HostContentSettingsMapFactory::GetForProfile(profile)->SetContentSetting(
- ContentSettingsPattern::Wildcard(), ContentSettingsPattern::Wildcard(),
- CONTENT_SETTINGS_TYPE_PLUGINS, plugin.get(),
- allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_DEFAULT);
+ HostContentSettingsMapFactory::GetForProfile(profile)
+ ->SetContentSettingCustomScope(
+ ContentSettingsPattern::Wildcard(),
+ ContentSettingsPattern::Wildcard(), CONTENT_SETTINGS_TYPE_PLUGINS,
+ plugin.get(),
+ allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_DEFAULT);
// Keep track of the whitelist separately, so that we can distinguish plugins
// whitelisted by the user from automatically whitelisted ones.

Powered by Google App Engine
This is Rietveld 408576698