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

Unified Diff: components/prefs/pref_service.h

Issue 2773513002: Stop passing raw pointers to DictionaryValue::Set, part 1 (Closed)
Patch Set: Fix compilation 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 | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_service.h
diff --git a/components/prefs/pref_service.h b/components/prefs/pref_service.h
index d26e118d8912a90d053b9d09ca467e9fda4547f1..e08e361c40b618da1637b995323745dfc1e0052f 100644
--- a/components/prefs/pref_service.h
+++ b/components/prefs/pref_service.h
@@ -355,7 +355,8 @@ class COMPONENTS_PREFS_EXPORT PrefService : public base::NonThreadSafe {
// Sets the value for this pref path in the user pref store and informs the
// PrefNotifier of the change.
- void SetUserPrefValue(const std::string& path, base::Value* new_value);
+ void SetUserPrefValue(const std::string& path,
+ std::unique_ptr<base::Value> new_value);
// Load preferences from storage, attempting to diagnose and handle errors.
// This should only be called from the constructor.
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698