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

Unified Diff: components/search_engines/default_search_manager.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/search_engines/default_search_manager.cc
diff --git a/components/search_engines/default_search_manager.cc b/components/search_engines/default_search_manager.cc
index 8a96d8da68e09eacb63a18a34b5e90da19cff4bf..15b008314616e536842a26ba17defb8a8a21a334 100644
--- a/components/search_engines/default_search_manager.cc
+++ b/components/search_engines/default_search_manager.cc
@@ -110,7 +110,8 @@ void DefaultSearchManager::RegisterProfilePrefs(
void DefaultSearchManager::AddPrefValueToMap(
scoped_ptr<base::DictionaryValue> value,
PrefValueMap* pref_value_map) {
- pref_value_map->SetValue(kDefaultSearchProviderDataPrefName, value.Pass());
+ pref_value_map->SetValue(kDefaultSearchProviderDataPrefName,
+ std::move(value));
}
// static
@@ -406,7 +407,7 @@ void DefaultSearchManager::LoadDefaultSearchEngineFromPrefs() {
void DefaultSearchManager::LoadPrepopulatedDefaultSearch() {
scoped_ptr<TemplateURLData> data =
TemplateURLPrepopulateData::GetPrepopulatedDefaultSearch(pref_service_);
- fallback_default_search_ = data.Pass();
+ fallback_default_search_ = std::move(data);
MergePrefsDataWithPrepopulated();
}
« no previous file with comments | « components/scheduler/renderer/web_view_scheduler_impl.cc ('k') | components/search_engines/default_search_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698