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)); |
} |