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

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

Issue 385263004: Get rid of some uses of CreateIntegerValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 fd5cf24b9b5412ee21b44b68c6af090941d9cd19..32a0527a2b2b2cab1bf09047680d75ef88e13e6f 100644
--- a/chrome/browser/content_settings/content_settings_pref_provider.cc
+++ b/chrome/browser/content_settings/content_settings_pref_provider.cc
@@ -339,7 +339,7 @@ void PrefProvider::MigrateObsoleteMediaContentSetting() {
it->secondary_pattern,
CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC,
std::string(),
- base::Value::CreateIntegerValue(CONTENT_SETTING_ALLOW));
+ new base::FundamentalValue(CONTENT_SETTING_ALLOW));
}
// Add the exception to the new camera content setting.
if (!video_device.empty()) {
@@ -347,7 +347,7 @@ void PrefProvider::MigrateObsoleteMediaContentSetting() {
it->secondary_pattern,
CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA,
std::string(),
- base::Value::CreateIntegerValue(CONTENT_SETTING_ALLOW));
+ new base::FundamentalValue(CONTENT_SETTING_ALLOW));
}
// Remove the old exception in CONTENT_SETTINGS_TYPE_MEDIASTREAM.
@@ -433,7 +433,7 @@ void PrefProvider::ReadContentSettingsFromPref(bool overwrite) {
pattern_pair.second,
content_type,
resource_identifier,
- base::Value::CreateIntegerValue(setting));
+ new base::FundamentalValue(setting));
}
}
}
@@ -453,7 +453,7 @@ void PrefProvider::ReadContentSettingsFromPref(bool overwrite) {
DCHECK_NE(CONTENT_SETTING_DEFAULT, setting);
setting = FixObsoleteCookiePromptMode(content_type,
ContentSetting(setting));
- value = base::Value::CreateIntegerValue(setting);
+ value = new base::FundamentalValue(setting);
}
}

Powered by Google App Engine
This is Rietveld 408576698