| 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 d4c22bf3d7854ec7b3e022c4ca56afd78287527b..1beb2b4c04d7403c4ce7acdaaa8caae61e183821 100644
|
| --- a/chrome/browser/policy/configuration_policy_handler.cc
|
| +++ b/chrome/browser/policy/configuration_policy_handler.cc
|
| @@ -90,6 +90,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
|
| @@ -732,6 +735,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
|
| @@ -749,6 +754,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
|
|
|