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

Unified Diff: components/user_prefs/user_prefs.h

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (Closed)
Patch Set: rebase Created 3 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/user_prefs.h
diff --git a/components/user_prefs/user_prefs.h b/components/user_prefs/user_prefs.h
index 55e81c91c5016370a596993d532f881ea2934814..392e5dc7f23279c0d371baf1f1f0258ce6ebc87d 100644
--- a/components/user_prefs/user_prefs.h
+++ b/components/user_prefs/user_prefs.h
@@ -20,6 +20,8 @@ namespace user_prefs {
// base::SupportsUserData using the UserPrefs::Set() function.
class USER_PREFS_EXPORT UserPrefs : public base::SupportsUserData::Data {
public:
+ ~UserPrefs() override;
+
// Retrieves the PrefService for a given context, or null if none is attached.
static PrefService* Get(base::SupportsUserData* context);
@@ -29,7 +31,6 @@ class USER_PREFS_EXPORT UserPrefs : public base::SupportsUserData::Data {
private:
explicit UserPrefs(PrefService* prefs);
- ~UserPrefs() override;
// Non-owning; owned by embedder.
PrefService* prefs_;

Powered by Google App Engine
This is Rietveld 408576698