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

Unified Diff: components/prefs/pref_service_unittest.cc

Issue 1907043002: Convert //components/prefs from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixes Created 4 years, 8 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/pref_service_unittest.cc
diff --git a/components/prefs/pref_service_unittest.cc b/components/prefs/pref_service_unittest.cc
index 77ecd199fc9c88ad4f4dd594f2b754d6bf8995e7..ea9577726a9fce34d80fca28dece73ad0726e8a2 100644
--- a/components/prefs/pref_service_unittest.cc
+++ b/components/prefs/pref_service_unittest.cc
@@ -243,13 +243,13 @@ class WriteFlagChecker : public TestingPrefStore {
}
void SetValue(const std::string& key,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
uint32_t flags) override {
SetLastWriteFlags(flags);
}
void SetValueSilently(const std::string& key,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
uint32_t flags) override {
SetLastWriteFlags(flags);
}
@@ -286,7 +286,7 @@ TEST(PrefServiceTest, WriteablePrefStoreFlags) {
scoped_refptr<PrefRegistrySimple> registry(new PrefRegistrySimple);
PrefServiceFactory factory;
factory.set_user_prefs(flag_checker);
- scoped_ptr<PrefService> prefs(factory.Create(registry.get()));
+ std::unique_ptr<PrefService> prefs(factory.Create(registry.get()));
// The first 8 bits of write flags are reserved for subclasses. Create a
// custom flag in this range

Powered by Google App Engine
This is Rietveld 408576698