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

Unified Diff: components/search_engines/default_search_policy_handler.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_policy_handler.cc
diff --git a/components/search_engines/default_search_policy_handler.cc b/components/search_engines/default_search_policy_handler.cc
index 6e6172d98ac4d202f82c023ec3b6775b99efab7a..e0362e9c26fcf0acce13813751ee9899cc852e7e 100644
--- a/components/search_engines/default_search_policy_handler.cc
+++ b/components/search_engines/default_search_policy_handler.cc
@@ -5,6 +5,7 @@
#include "components/search_engines/default_search_policy_handler.h"
#include <stddef.h>
+#include <utility>
#include "base/macros.h"
#include "base/prefs/pref_value_map.h"
@@ -233,7 +234,7 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
if (DefaultSearchProviderIsDisabled(policies)) {
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
dict->SetBoolean(DefaultSearchManager::kDisabledByPolicy, true);
- DefaultSearchManager::AddPrefValueToMap(dict.Pass(), prefs);
+ DefaultSearchManager::AddPrefValueToMap(std::move(dict), prefs);
return;
}
@@ -297,7 +298,7 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
if (keyword.empty())
dict->SetString(DefaultSearchManager::kKeyword, host);
- DefaultSearchManager::AddPrefValueToMap(dict.Pass(), prefs);
+ DefaultSearchManager::AddPrefValueToMap(std::move(dict), prefs);
}
bool DefaultSearchPolicyHandler::CheckIndividualPolicies(

Powered by Google App Engine
This is Rietveld 408576698