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

Unified Diff: components/prefs/testing_pref_store.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 426bd643f36c01e7ed362d5c92db2f8912b8aaf3..2060c9fdcec25098eb06f112bfa87ffcccf8b414 100644
--- a/components/prefs/testing_pref_store.cc
+++ b/components/prefs/testing_pref_store.cc
@@ -118,17 +118,17 @@ void TestingPrefStore::ReportValueChanged(const std::string& key,
void TestingPrefStore::SetString(const std::string& key,
const std::string& value) {
- SetValue(key, base::WrapUnique(new base::StringValue(value)),
+ SetValue(key, base::MakeUnique<base::StringValue>(value),
DEFAULT_PREF_WRITE_FLAGS);
}
void TestingPrefStore::SetInteger(const std::string& key, int value) {
- SetValue(key, base::WrapUnique(new base::FundamentalValue(value)),
+ SetValue(key, base::MakeUnique<base::FundamentalValue>(value),
DEFAULT_PREF_WRITE_FLAGS);
}
void TestingPrefStore::SetBoolean(const std::string& key, bool value) {
- SetValue(key, base::WrapUnique(new base::FundamentalValue(value)),
+ SetValue(key, base::MakeUnique<base::FundamentalValue>(value),
DEFAULT_PREF_WRITE_FLAGS);
}
« no previous file with comments | « components/prefs/pref_value_map_unittest.cc ('k') | components/printing/test/print_test_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698