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

Unified Diff: components/prefs/default_pref_store.cc

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/default_pref_store.cc
diff --git a/components/prefs/default_pref_store.cc b/components/prefs/default_pref_store.cc
index 79867e95774b43b0b381e762a73701f4d7de272e..ed401899c871a1bd11e7289979183261e60e6029 100644
--- a/components/prefs/default_pref_store.cc
+++ b/components/prefs/default_pref_store.cc
@@ -30,13 +30,13 @@ bool DefaultPrefStore::HasObservers() const {
}
void DefaultPrefStore::SetDefaultValue(const std::string& key,
- scoped_ptr<Value> value) {
+ std::unique_ptr<Value> value) {
DCHECK(!GetValue(key, NULL));
prefs_.SetValue(key, std::move(value));
}
void DefaultPrefStore::ReplaceDefaultValue(const std::string& key,
- scoped_ptr<Value> value) {
+ std::unique_ptr<Value> value) {
const Value* old_value = NULL;
GetValue(key, &old_value);
bool notify = !old_value->Equals(value.get());

Powered by Google App Engine
This is Rietveld 408576698