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

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

Issue 1908143002: Convert //components/user_prefs from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the rightful glory of <windows.h> 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/user_prefs/tracked/pref_service_hash_store_contents.cc
diff --git a/components/user_prefs/tracked/pref_service_hash_store_contents.cc b/components/user_prefs/tracked/pref_service_hash_store_contents.cc
index 8f8329ec4c44c50d0adb9a651a4ac1e856a82a6a..d175541281fa6e00d7675528a27f2ba55164b312 100644
--- a/components/user_prefs/tracked/pref_service_hash_store_contents.cc
+++ b/components/user_prefs/tracked/pref_service_hash_store_contents.cc
@@ -121,9 +121,9 @@ const base::DictionaryValue* PrefServiceHashStoreContents::GetContents() const {
return hashes_dict;
}
-scoped_ptr<HashStoreContents::MutableDictionary>
+std::unique_ptr<HashStoreContents::MutableDictionary>
PrefServiceHashStoreContents::GetMutableContents() {
- return scoped_ptr<HashStoreContents::MutableDictionary>(
+ return std::unique_ptr<HashStoreContents::MutableDictionary>(
new PrefServiceMutableDictionary(hash_store_id_, pref_service_));
}

Powered by Google App Engine
This is Rietveld 408576698