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

Unified Diff: components/user_prefs/tracked/pref_hash_store.h

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_hash_store.h
diff --git a/components/user_prefs/tracked/pref_hash_store.h b/components/user_prefs/tracked/pref_hash_store.h
index 9ab0f48aa6da4c267b2e707a6301721e843ff9bc..2fdc617301ae1fea64526ae16fe5d6621c272406 100644
--- a/components/user_prefs/tracked/pref_hash_store.h
+++ b/components/user_prefs/tracked/pref_hash_store.h
@@ -5,7 +5,7 @@
#ifndef COMPONENTS_PREFS_TRACKED_PREF_HASH_STORE_H_
#define COMPONENTS_PREFS_TRACKED_PREF_HASH_STORE_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
class HashStoreContents;
class PrefHashStoreTransaction;
@@ -21,8 +21,8 @@ class PrefHashStore {
// of operations on the hash store. |storage| MAY be used as the backing store
// depending on the implementation. Therefore the HashStoreContents used for
// related transactions should correspond to the same underlying data store.
- virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction(
- scoped_ptr<HashStoreContents> storage) = 0;
+ virtual std::unique_ptr<PrefHashStoreTransaction> BeginTransaction(
+ std::unique_ptr<HashStoreContents> storage) = 0;
};
#endif // COMPONENTS_PREFS_TRACKED_PREF_HASH_STORE_H_
« no previous file with comments | « components/user_prefs/tracked/pref_hash_filter_unittest.cc ('k') | components/user_prefs/tracked/pref_hash_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698