Index: chrome/browser/policy/configuration_policy_handler.cc |
diff --git a/chrome/browser/policy/configuration_policy_handler.cc b/chrome/browser/policy/configuration_policy_handler.cc |
index 68536d35a2dc70493c22d5eb4cd0afa9e9d97852..5587cae14c2c6582bdbdd08633edf7282a5e7b15 100644 |
--- a/chrome/browser/policy/configuration_policy_handler.cc |
+++ b/chrome/browser/policy/configuration_policy_handler.cc |
@@ -92,6 +92,9 @@ const DefaultSearchSimplePolicyHandlerEntry kDefaultSearchPolicyMap[] = { |
{ key::kDefaultSearchProviderAlternateURLs, |
prefs::kDefaultSearchProviderAlternateURLs, |
Value::TYPE_LIST }, |
+ { key::kDefaultSearchProviderSearchTermsReplacementKey, |
+ prefs::kDefaultSearchProviderSearchTermsReplacementKey, |
+ Value::TYPE_STRING }, |
}; |
// List of entries determining which proxy policies can be specified, depending |
@@ -825,6 +828,8 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, |
prefs->SetString(prefs::kDefaultSearchProviderInstantURL, std::string()); |
prefs->SetValue(prefs::kDefaultSearchProviderAlternateURLs, |
new ListValue()); |
+ prefs->SetString(prefs::kDefaultSearchProviderSearchTermsReplacementKey, |
+ std::string()); |
} else { |
// The search URL is required. The other entries are optional. Just make |
// sure that they are all specified via policy, so that the regular prefs |
@@ -842,6 +847,8 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies, |
EnsureStringPrefExists(prefs, prefs::kDefaultSearchProviderKeyword); |
EnsureStringPrefExists(prefs, prefs::kDefaultSearchProviderInstantURL); |
EnsureListPrefExists(prefs, prefs::kDefaultSearchProviderAlternateURLs); |
+ EnsureStringPrefExists(prefs, |
+ prefs::kDefaultSearchProviderSearchTermsReplacementKey); |
// For the name and keyword, default to the host if not specified. If |
// there is no host (file: URLs? Not sure), use "_" to guarantee that the |