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

Unified Diff: base/prefs/pref_member.cc

Issue 16797003: Make base use the proper Value namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwarnings fixed 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
Index: base/prefs/pref_member.cc
diff --git a/base/prefs/pref_member.cc b/base/prefs/pref_member.cc
index a77224356677252f6bf09ce3ca1be165035dc47c..ca6e3bed44e5fa45ba0dbf7ab54b42cc97ec539d 100644
--- a/base/prefs/pref_member.cc
+++ b/base/prefs/pref_member.cc
@@ -135,10 +135,11 @@ bool PrefMemberVectorStringUpdate(const base::Value& value,
std::vector<std::string>* string_vector) {
if (!value.IsType(base::Value::TYPE_LIST))
return false;
- const ListValue* list = static_cast<const ListValue*>(&value);
+ const base::ListValue* list = static_cast<const base::ListValue*>(&value);
std::vector<std::string> local_vector;
- for (ListValue::const_iterator it = list->begin(); it != list->end(); ++it) {
+ for (base::ListValue::const_iterator it = list->begin();
+ it != list->end(); ++it) {
std::string string_value;
if (!(*it)->GetAsString(&string_value))
return false;
@@ -212,7 +213,7 @@ bool PrefMember<base::FilePath>::Internal::UpdateValueInternal(
template <>
void PrefMember<std::vector<std::string> >::UpdatePref(
const std::vector<std::string>& value) {
- ListValue list_value;
+ base::ListValue list_value;
list_value.AppendStrings(value);
prefs()->Set(pref_name().c_str(), list_value);
}

Powered by Google App Engine
This is Rietveld 408576698