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

Unified Diff: components/prefs/testing_pref_store.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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/prefs/testing_pref_store.cc
diff --git a/components/prefs/testing_pref_store.cc b/components/prefs/testing_pref_store.cc
index d084c4a23fd4bdecacb66a4dd97775ccee952b0b..8f6f2098d470ff4802f56879f0fc7fbd34ffa7ea 100644
--- a/components/prefs/testing_pref_store.cc
+++ b/components/prefs/testing_pref_store.cc
@@ -129,13 +129,11 @@ void TestingPrefStore::SetString(const std::string& key,
}
void TestingPrefStore::SetInteger(const std::string& key, int value) {
- SetValue(key, base::MakeUnique<base::FundamentalValue>(value),
- DEFAULT_PREF_WRITE_FLAGS);
+ SetValue(key, base::MakeUnique<base::Value>(value), DEFAULT_PREF_WRITE_FLAGS);
}
void TestingPrefStore::SetBoolean(const std::string& key, bool value) {
- SetValue(key, base::MakeUnique<base::FundamentalValue>(value),
- DEFAULT_PREF_WRITE_FLAGS);
+ SetValue(key, base::MakeUnique<base::Value>(value), DEFAULT_PREF_WRITE_FLAGS);
}
bool TestingPrefStore::GetString(const std::string& key,
« no previous file with comments | « components/prefs/pref_value_store_unittest.cc ('k') | components/search_engines/default_search_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698