Commit 7277f2bd authored by ivankr@chromium.org's avatar ivankr@chromium.org

Add missing checks that default search contains search term replacement.


BUG=116952
TEST=TemplateURLServiceTest.*


Review URL: http://codereview.chromium.org/10184009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133510 0039d316-1c4b-4281-b951-d872f2087c98
parent 4c8bf00f
......@@ -612,7 +612,8 @@ void TemplateURLService::OnWebDataServiceRequestDone(
}
// Note that this saves the default search provider to prefs.
if (!default_search_provider ||
!default_search_provider->IsExtensionKeyword())
(!default_search_provider->IsExtensionKeyword() &&
default_search_provider->SupportsReplacement()))
SetDefaultSearchProviderNoNotify(default_search_provider);
} else {
// If we had a managed default, replace it with the synced default if
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment