commit | 97a70e4b769daae7d7eb425128f00eb56c6a0b2a | [log] [tgz] |
---|---|---|
author | Lei Zhang <[email protected]> | Fri Oct 11 20:59:12 2019 |
committer | Commit Bot <[email protected]> | Fri Oct 11 20:59:12 2019 |
tree | 3534d7011c81eb88a4ec247437ba78c3e02fd975 | |
parent | 9edd7401fc34ec406ffecc7b429558a23672e70d [diff] [blame] |
Change PrefService::SetUserPrefValue() to take a base::Value. Replace the std::unique_ptr<base::Value> parameter to base::Value. Bug: 1012811 Change-Id: Id63d78a0ce54a381822b911ce67caf5afe38b3d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848857 Reviewed-by: Gabriel Charette <[email protected]> Commit-Queue: Lei Zhang <[email protected]> Cr-Commit-Position: refs/heads/master@{#705269}
diff --git a/components/prefs/pref_service.h b/components/prefs/pref_service.h index 9580b48..b50a31c 100644 --- a/components/prefs/pref_service.h +++ b/components/prefs/pref_service.h
@@ -428,8 +428,7 @@ // 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, - std::unique_ptr<base::Value> new_value); + void SetUserPrefValue(const std::string& path, base::Value new_value); // Load preferences from storage, attempting to diagnose and handle errors. // This should only be called from the constructor.