| Index: base/prefs/default_pref_store.cc
|
| diff --git a/base/prefs/default_pref_store.cc b/base/prefs/default_pref_store.cc
|
| index efb4a754f4599dacaccf7d9de710817c0f565d96..b08ef7a52866d221ec89a98adef2d8864605b625 100644
|
| --- a/base/prefs/default_pref_store.cc
|
| +++ b/base/prefs/default_pref_store.cc
|
| @@ -3,6 +3,9 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/prefs/default_pref_store.h"
|
| +
|
| +#include <utility>
|
| +
|
| #include "base/logging.h"
|
|
|
| using base::Value;
|
| @@ -29,7 +32,7 @@ bool DefaultPrefStore::HasObservers() const {
|
| void DefaultPrefStore::SetDefaultValue(const std::string& key,
|
| scoped_ptr<Value> value) {
|
| DCHECK(!GetValue(key, NULL));
|
| - prefs_.SetValue(key, value.Pass());
|
| + prefs_.SetValue(key, std::move(value));
|
| }
|
|
|
| void DefaultPrefStore::ReplaceDefaultValue(const std::string& key,
|
| @@ -37,7 +40,7 @@ void DefaultPrefStore::ReplaceDefaultValue(const std::string& key,
|
| const Value* old_value = NULL;
|
| GetValue(key, &old_value);
|
| bool notify = !old_value->Equals(value.get());
|
| - prefs_.SetValue(key, value.Pass());
|
| + prefs_.SetValue(key, std::move(value));
|
| if (notify)
|
| FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
|
| }
|
|
|