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

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.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/android/preferences/pref_service_bridge.cc
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc
index 5dc33a639bb5b15a620448cc15b5c9535cd41fe4..fe10aae293b41de26313c4f7593b789b9773a8b4 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -163,11 +163,10 @@ static void SetContentSettingForPattern(JNIEnv* env,
int setting) {
HostContentSettingsMap* host_content_settings_map =
HostContentSettingsMapFactory::GetForProfile(GetOriginalProfile());
- host_content_settings_map->SetContentSetting(
+ host_content_settings_map->SetContentSettingCustomScope(
ContentSettingsPattern::FromString(ConvertJavaStringToUTF8(env, pattern)),
ContentSettingsPattern::Wildcard(),
- static_cast<ContentSettingsType>(content_settings_type),
- std::string(),
+ static_cast<ContentSettingsType>(content_settings_type), std::string(),
static_cast<ContentSetting>(setting));
}

Powered by Google App Engine
This is Rietveld 408576698