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

Unified Diff: tools/json_schema_compiler/util.cc

Issue 17034006: Add base namespace to more values in sync and elsewhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « tools/json_schema_compiler/util.h ('k') | ui/webui/jstemplate_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/util.cc
diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc
index 25f908cf2af0537b6c328af66c450833fde04732..a4495090fa4b3d02a563f53e395dc0a64fa893a1 100644
--- a/tools/json_schema_compiler/util.cc
+++ b/tools/json_schema_compiler/util.cc
@@ -9,23 +9,23 @@
namespace json_schema_compiler {
namespace util {
-bool GetItemFromList(const ListValue& from, int index, int* out) {
+bool GetItemFromList(const base::ListValue& from, int index, int* out) {
return from.GetInteger(index, out);
}
-bool GetItemFromList(const ListValue& from, int index, bool* out) {
+bool GetItemFromList(const base::ListValue& from, int index, bool* out) {
return from.GetBoolean(index, out);
}
-bool GetItemFromList(const ListValue& from, int index, double* out) {
+bool GetItemFromList(const base::ListValue& from, int index, double* out) {
return from.GetDouble(index, out);
}
-bool GetItemFromList(const ListValue& from, int index, std::string* out) {
+bool GetItemFromList(const base::ListValue& from, int index, std::string* out) {
return from.GetString(index, out);
}
-bool GetItemFromList(const ListValue& from,
+bool GetItemFromList(const base::ListValue& from,
int index,
linked_ptr<base::Value>* out) {
const base::Value* value = NULL;
@@ -35,9 +35,9 @@ bool GetItemFromList(const ListValue& from,
return true;
}
-bool GetItemFromList(const ListValue& from, int index,
+bool GetItemFromList(const base::ListValue& from, int index,
linked_ptr<base::DictionaryValue>* out) {
- const DictionaryValue* dict = NULL;
+ const base::DictionaryValue* dict = NULL;
if (!from.GetDictionary(index, &dict))
return false;
*out = make_linked_ptr(dict->DeepCopy());
@@ -67,7 +67,7 @@ void AddItemToList(const linked_ptr<base::Value>& from,
void AddItemToList(const linked_ptr<base::DictionaryValue>& from,
base::ListValue* out) {
- out->Append(static_cast<Value*>(from->DeepCopy()));
+ out->Append(static_cast<base::Value*>(from->DeepCopy()));
}
} // namespace api_util
« no previous file with comments | « tools/json_schema_compiler/util.h ('k') | ui/webui/jstemplate_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698