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

Unified Diff: components/user_prefs/tracked/dictionary_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/dictionary_hash_store_contents.cc
diff --git a/components/user_prefs/tracked/dictionary_hash_store_contents.cc b/components/user_prefs/tracked/dictionary_hash_store_contents.cc
index 403437b62c2e2f3e03f33d0f7a3b5589d92b62ed..899cafabec128daab5cb8696c285e06240ac5afc 100644
--- a/components/user_prefs/tracked/dictionary_hash_store_contents.cc
+++ b/components/user_prefs/tracked/dictionary_hash_store_contents.cc
@@ -78,9 +78,9 @@ const base::DictionaryValue* DictionaryHashStoreContents::GetContents() const {
return mac_dictionary;
}
-scoped_ptr<HashStoreContents::MutableDictionary>
+std::unique_ptr<HashStoreContents::MutableDictionary>
DictionaryHashStoreContents::GetMutableContents() {
- return scoped_ptr<MutableDictionary>(
+ return std::unique_ptr<MutableDictionary>(
new MutablePreferenceMacDictionary(storage_));
}
« no previous file with comments | « components/user_prefs/tracked/dictionary_hash_store_contents.h ('k') | components/user_prefs/tracked/hash_store_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698