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

Unified Diff: components/user_prefs/tracked/segregated_pref_store.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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/tracked/segregated_pref_store.cc
diff --git a/components/user_prefs/tracked/segregated_pref_store.cc b/components/user_prefs/tracked/segregated_pref_store.cc
index 0d2ef94aa86869597fbe3c88f9e19aababf13ee8..177736cf29eeba217831ae4f5779eab6f924c8b6 100644
--- a/components/user_prefs/tracked/segregated_pref_store.cc
+++ b/components/user_prefs/tracked/segregated_pref_store.cc
@@ -4,6 +4,8 @@
#include "components/user_prefs/tracked/segregated_pref_store.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/values.h"
@@ -85,7 +87,7 @@ bool SegregatedPrefStore::GetValue(const std::string& key,
void SegregatedPrefStore::SetValue(const std::string& key,
scoped_ptr<base::Value> value,
uint32_t flags) {
- StoreForKey(key)->SetValue(key, value.Pass(), flags);
+ StoreForKey(key)->SetValue(key, std::move(value), flags);
}
void SegregatedPrefStore::RemoveValue(const std::string& key, uint32_t flags) {
@@ -105,7 +107,7 @@ void SegregatedPrefStore::ReportValueChanged(const std::string& key,
void SegregatedPrefStore::SetValueSilently(const std::string& key,
scoped_ptr<base::Value> value,
uint32_t flags) {
- StoreForKey(key)->SetValueSilently(key, value.Pass(), flags);
+ StoreForKey(key)->SetValueSilently(key, std::move(value), flags);
}
bool SegregatedPrefStore::ReadOnly() const {
« no previous file with comments | « components/user_prefs/tracked/pref_hash_store_impl.cc ('k') | components/user_prefs/tracked/segregated_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698