| 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 a1d65a9278f7579d1f7c1dd104974cab2e5ab57b..d3316c7407180e29546744424f36a0db419b58fb 100644
|
| --- a/chrome/browser/policy/configuration_policy_handler.cc
|
| +++ b/chrome/browser/policy/configuration_policy_handler.cc
|
| @@ -87,6 +87,9 @@ const DefaultSearchSimplePolicyHandlerEntry kDefaultSearchPolicyMap[] = {
|
| { key::kDefaultSearchProviderEncodings,
|
| prefs::kDefaultSearchProviderEncodings,
|
| Value::TYPE_LIST },
|
| + { key::kDefaultSearchProviderAlternateURLs,
|
| + prefs::kDefaultSearchProviderAlternateURLs,
|
| + Value::TYPE_STRING },
|
| };
|
|
|
| // List of entries determining which proxy policies can be specified, depending
|
| @@ -649,6 +652,7 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
|
| prefs->SetString(prefs::kDefaultSearchProviderEncodings, std::string());
|
| prefs->SetString(prefs::kDefaultSearchProviderKeyword, std::string());
|
| prefs->SetString(prefs::kDefaultSearchProviderInstantURL, std::string());
|
| + prefs->SetString(prefs::kDefaultSearchProviderAlternateURLs, 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
|
| @@ -665,6 +669,7 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
|
| EnsureStringPrefExists(prefs, prefs::kDefaultSearchProviderEncodings);
|
| EnsureStringPrefExists(prefs, prefs::kDefaultSearchProviderKeyword);
|
| EnsureStringPrefExists(prefs, prefs::kDefaultSearchProviderInstantURL);
|
| + EnsureStringPrefExists(prefs, prefs::kDefaultSearchProviderAlternateURLs);
|
|
|
| // 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
|
|
|