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

Unified Diff: chrome/browser/extensions/extension_web_ui.cc

Issue 104493005: 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/extensions/extension_web_ui.cc
diff --git a/chrome/browser/extensions/extension_web_ui.cc b/chrome/browser/extensions/extension_web_ui.cc
index 914c5dbd0f7b932d3c599a57ad5020815a70fa0b..d187a8cfce4f7c4898859bbafdf8a21c28c986bc 100644
--- a/chrome/browser/extensions/extension_web_ui.cc
+++ b/chrome/browser/extensions/extension_web_ui.cc
@@ -185,7 +185,7 @@ bool ExtensionWebUI::HandleChromeURLOverride(
size_t i = 0;
while (i < url_list->GetSize()) {
- const Value* val = NULL;
+ const base::Value* val = NULL;
url_list->Get(i, &val);
// Verify that the override value is good. If not, unregister it and find
@@ -311,7 +311,7 @@ void ExtensionWebUI::RegisterChromeURLOverrides(
}
// Insert the override at the front of the list. Last registered override
// wins.
- page_overrides->Insert(0, new StringValue(iter->second.spec()));
+ page_overrides->Insert(0, new base::StringValue(iter->second.spec()));
}
}
@@ -319,7 +319,7 @@ void ExtensionWebUI::RegisterChromeURLOverrides(
void ExtensionWebUI::UnregisterAndReplaceOverride(const std::string& page,
Profile* profile,
base::ListValue* list,
- const Value* override) {
+ const base::Value* override) {
size_t index = 0;
bool found = list->Remove(*override, &index);
if (found && index == 0) {
@@ -334,7 +334,7 @@ void ExtensionWebUI::UnregisterAndReplaceOverride(const std::string& page,
// static
void ExtensionWebUI::UnregisterChromeURLOverride(const std::string& page,
Profile* profile,
- const Value* override) {
+ const base::Value* override) {
if (!override)
return;
PrefService* prefs = profile->GetPrefs();
@@ -367,7 +367,7 @@ void ExtensionWebUI::UnregisterChromeURLOverrides(
NOTREACHED();
continue;
} else {
- StringValue override(iter->second.spec());
+ base::StringValue override(iter->second.spec());
UnregisterAndReplaceOverride(iter->first, profile,
page_overrides, &override);
}
« no previous file with comments | « chrome/browser/extensions/extension_ui_unittest.cc ('k') | chrome/browser/extensions/external_policy_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698