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

Unified Diff: chrome/browser/content_settings/content_settings_pref_provider.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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/content_settings/content_settings_pref_provider.cc
diff --git a/chrome/browser/content_settings/content_settings_pref_provider.cc b/chrome/browser/content_settings/content_settings_pref_provider.cc
index d088a8832f7bc51202688057be954591c5dae82a..6741ca033829398d8d49bf37847d48c15f8efcbe 100644
--- a/chrome/browser/content_settings/content_settings_pref_provider.cc
+++ b/chrome/browser/content_settings/content_settings_pref_provider.cc
@@ -185,7 +185,7 @@ void PrefDefaultProvider::UpdateDefaultSetting(
} else {
default_content_settings_.settings[content_type] = setting;
default_settings_dictionary->SetWithoutPathExpansion(
- dictionary_path, Value::CreateIntegerValue(setting));
+ dictionary_path, base::NumberValue::New(setting));
}
// Keep the obsolete pref in sync as long as backwards compatibility is
@@ -490,7 +490,7 @@ void PrefProvider::SetContentSetting(
secondary_pattern,
content_type,
resource_identifier,
- Value::CreateIntegerValue(setting));
+ base::NumberValue::New(setting));
}
}
@@ -668,7 +668,7 @@ void PrefProvider::ReadContentSettingsFromPref(bool overwrite) {
pattern_pair.second,
content_type,
resource_identifier,
- Value::CreateIntegerValue(setting));
+ base::NumberValue::New(setting));
}
}
} else if (kTypeNames[i]) {
@@ -685,7 +685,7 @@ void PrefProvider::ReadContentSettingsFromPref(bool overwrite) {
pattern_pair.second,
content_type,
ResourceIdentifier(""),
- Value::CreateIntegerValue(setting));
+ base::NumberValue::New(setting));
}
}
}
@@ -738,7 +738,7 @@ void PrefProvider::UpdatePatternsPref(
}
} else {
resource_dictionary->SetWithoutPathExpansion(
- resource_identifier, Value::CreateIntegerValue(setting));
+ resource_identifier, base::NumberValue::New(setting));
}
} else {
// Update settings dictionary.
@@ -748,7 +748,7 @@ void PrefProvider::UpdatePatternsPref(
NULL);
} else {
settings_dictionary->SetWithoutPathExpansion(
- setting_path, Value::CreateIntegerValue(setting));
+ setting_path, base::NumberValue::New(setting));
}
}
// Remove the settings dictionary if it is empty.
@@ -805,7 +805,7 @@ void PrefProvider::UpdatePatternPairsPref(
}
} else {
resource_dictionary->SetWithoutPathExpansion(
- resource_identifier, Value::CreateIntegerValue(setting));
+ resource_identifier, base::NumberValue::New(setting));
}
} else {
// Update settings dictionary.
@@ -815,7 +815,7 @@ void PrefProvider::UpdatePatternPairsPref(
NULL);
} else {
settings_dictionary->SetWithoutPathExpansion(
- setting_path, Value::CreateIntegerValue(setting));
+ setting_path, base::NumberValue::New(setting));
}
}
// Remove the settings dictionary if it is empty.

Powered by Google App Engine
This is Rietveld 408576698