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

Unified Diff: components/prefs/pref_registry.h

Issue 2784513002: Move PrefRegistrySimple to use unique_ptr<Value> (Closed)
Patch Set: Android Created 3 years, 9 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
« no previous file with comments | « components/prefs/pref_member_unittest.cc ('k') | components/prefs/pref_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_registry.h
diff --git a/components/prefs/pref_registry.h b/components/prefs/pref_registry.h
index 31a4956f7937ecda8442d69a2ef17bf08ff7af6b..bdb8af55a0442560cbe6231fd24e03cc0382be10 100644
--- a/components/prefs/pref_registry.h
+++ b/components/prefs/pref_registry.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <memory>
+
#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -75,7 +77,7 @@ class COMPONENTS_PREFS_EXPORT PrefRegistry
// Used by subclasses to register a default value and registration flags for
// a preference. |flags| is a bitmask of |PrefRegistrationFlags|.
void RegisterPreference(const std::string& path,
- base::Value* default_value,
+ std::unique_ptr<base::Value> default_value,
uint32_t flags);
scoped_refptr<DefaultPrefStore> defaults_;
« no previous file with comments | « components/prefs/pref_member_unittest.cc ('k') | components/prefs/pref_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698