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

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

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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/host_content_settings_map.cc
diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc
index b3cd2f16ebb42857996b088e24cc797c35304ee7..90f13403f0e92fffed313877a5cda1fea6c43e83 100644
--- a/chrome/browser/content_settings/host_content_settings_map.cc
+++ b/chrome/browser/content_settings/host_content_settings_map.cc
@@ -254,7 +254,7 @@ void HostContentSettingsMap::SetDefaultContentSetting(
base::Value* value = NULL;
if (setting != CONTENT_SETTING_DEFAULT)
- value = Value::CreateIntegerValue(setting);
+ value = base::Value::CreateIntegerValue(setting);
SetWebsiteSetting(
ContentSettingsPattern::Wildcard(),
ContentSettingsPattern::Wildcard(),
@@ -297,7 +297,7 @@ void HostContentSettingsMap::SetContentSetting(
DCHECK(!ContentTypeHasCompoundValue(content_type));
base::Value* value = NULL;
if (setting != CONTENT_SETTING_DEFAULT)
- value = Value::CreateIntegerValue(setting);
+ value = base::Value::CreateIntegerValue(setting);
SetWebsiteSetting(primary_pattern,
secondary_pattern,
content_type,
@@ -476,7 +476,8 @@ void HostContentSettingsMap::MigrateObsoleteClearOnExitPref() {
it->secondary_pattern,
CONTENT_SETTINGS_TYPE_COOKIES,
std::string(),
- Value::CreateIntegerValue(CONTENT_SETTING_SESSION_ONLY));
+ base::Value::CreateIntegerValue(
+ CONTENT_SETTING_SESSION_ONLY));
}
prefs_->SetBoolean(prefs::kContentSettingsClearOnExitMigrated, true);
@@ -572,7 +573,7 @@ base::Value* HostContentSettingsMap::GetWebsiteSetting(
info->primary_pattern = ContentSettingsPattern::Wildcard();
info->secondary_pattern = ContentSettingsPattern::Wildcard();
}
- return Value::CreateIntegerValue(CONTENT_SETTING_ALLOW);
+ return base::Value::CreateIntegerValue(CONTENT_SETTING_ALLOW);
}
ContentSettingsPattern* primary_pattern = NULL;

Powered by Google App Engine
This is Rietveld 408576698