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

Unified Diff: components/user_prefs/tracked/pref_hash_filter.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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: components/user_prefs/tracked/pref_hash_filter.cc
diff --git a/components/user_prefs/tracked/pref_hash_filter.cc b/components/user_prefs/tracked/pref_hash_filter.cc
index 6ae59af8e21bcfc760ac0e9788d4c184b0e7a177..8d9269eee851f80c62810fa7c2dd8c5be70b44ad 100644
--- a/components/user_prefs/tracked/pref_hash_filter.cc
+++ b/components/user_prefs/tracked/pref_hash_filter.cc
@@ -249,7 +249,7 @@ void PrefHashFilter::FinalizeFilterOnLoad(
if (did_reset) {
pref_store_contents->Set(user_prefs::kPreferenceResetTime,
- new base::StringValue(base::Int64ToString(
+ new base::Value(base::Int64ToString(
base::Time::Now().ToInternalValue())));
FilterUpdate(user_prefs::kPreferenceResetTime);
@@ -302,7 +302,7 @@ void PrefHashFilter::FlushToExternalStore(
changed_path, inner_it.key(), mac);
}
} else {
- const base::StringValue* value_as_string;
+ const base::Value* value_as_string;
bool is_string = it.value().GetAsString(&value_as_string);
DCHECK(is_string);

Powered by Google App Engine
This is Rietveld 408576698