Commit ebd2de69 authored by avayvod@chromium.org's avatar avayvod@chromium.org

Unhide Protector check from the flag, leave UI hidden.

R=ivankr@chromium.org
BUG=102765
TEST=Verify that histograms are updated on settings change without --protector flag.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109874 0039d316-1c4b-4281-b951-d872f2087c98
parent 33563155
...@@ -531,11 +531,11 @@ void TemplateURLService::OnWebDataServiceRequestDone( ...@@ -531,11 +531,11 @@ void TemplateURLService::OnWebDataServiceRequestDone(
// managed. // managed.
const TemplateURL* backup_default_search_provider = NULL; const TemplateURL* backup_default_search_provider = NULL;
if (!is_default_search_managed_ && if (!is_default_search_managed_ &&
CommandLine::ForCurrentProcess()->HasSwitch(switches::kProtector) &&
DidDefaultSearchProviderChange( DidDefaultSearchProviderChange(
*result, *result,
template_urls, template_urls,
&backup_default_search_provider) && &backup_default_search_provider) &&
CommandLine::ForCurrentProcess()->HasSwitch(switches::kProtector) &&
default_search_provider) { default_search_provider) {
// TODO: need to handle no default_search_provider better. Likely need to // TODO: need to handle no default_search_provider better. Likely need to
// make sure the default search engine is there, and if not assume it was // make sure the default search engine is there, and if not assume it was
......
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