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( |