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

Unified Diff: components/prefs/writeable_pref_store.h

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/writeable_pref_store.h
diff --git a/components/prefs/writeable_pref_store.h b/components/prefs/writeable_pref_store.h
index 0cb9f83d7b36042e30051fb2b7e34e8c7dbc595e..6cfbcee32d80104b5a1235662a09ee29580b6783 100644
--- a/components/prefs/writeable_pref_store.h
+++ b/components/prefs/writeable_pref_store.h
@@ -7,10 +7,10 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/prefs/pref_store.h"
namespace base {
@@ -36,7 +36,7 @@ class COMPONENTS_PREFS_EXPORT WriteablePrefStore : public PrefStore {
// Sets a |value| for |key| in the store. |value| must be non-NULL. |flags| is
// a bitmask of PrefWriteFlags.
virtual void SetValue(const std::string& key,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
uint32_t flags) = 0;
// Removes the value for |key|.
@@ -59,7 +59,7 @@ class COMPONENTS_PREFS_EXPORT WriteablePrefStore : public PrefStore {
// tests rely on the number of notifications generated. |flags| is a bitmask
// of PrefWriteFlags.
virtual void SetValueSilently(const std::string& key,
- scoped_ptr<base::Value> value,
+ std::unique_ptr<base::Value> value,
uint32_t flags) = 0;
protected:

Powered by Google App Engine
This is Rietveld 408576698