diff options
author | scr@chromium.org <scr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-05 20:36:43 +0000 |
---|---|---|
committer | scr@chromium.org <scr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-05 20:36:43 +0000 |
commit | cdc18419525f8691d041f0a83bb59f8d70b82ecf (patch) | |
tree | f54203cd7ee403b490f6e8892b2f79ff3ea706f3 /chrome | |
parent | e101217fb8adc0502d8b53922286d1ebf45b6a5e (diff) | |
download | chromium_src-cdc18419525f8691d041f0a83bb59f8d70b82ecf.zip chromium_src-cdc18419525f8691d041f0a83bb59f8d70b82ecf.tar.gz chromium_src-cdc18419525f8691d041f0a83bb59f8d70b82ecf.tar.bz2 |
Disable the Protector feature.
R=sky@chromium.org
BUG=109229
TEST=
Review URL: http://codereview.chromium.org/9109005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/search_engines/template_url_service.cc | 4 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 8 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc index 7585494..103f438 100644 --- a/chrome/browser/search_engines/template_url_service.cc +++ b/chrome/browser/search_engines/template_url_service.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -623,7 +623,7 @@ void TemplateURLService::OnWebDataServiceRequestDone( // check at the beginning (overridden by Sync). if (is_default_search_hijacked && default_search_provider_ == hijacked_default_search_provider) { - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoProtector)) { + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseProtector)) { // Protector is turned off: set the current default search to itself // to update the backup and sign it. Otherwise, change will be reported // every time when keywords are loaded until a search provider is added. diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 6935d83..1f32945 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -954,9 +954,6 @@ const char kProfilingFlush[] = "profiling-flush"; // Specifies a custom URL for fetching NTP promo data. const char kPromoServerURL[] = "promo-server-url"; -// Disables the protector. -const char kNoProtector[] = "no-protector"; - // Forces proxy auto-detection. const char kProxyAutoDetect[] = "proxy-auto-detect"; @@ -1120,6 +1117,9 @@ const char kUninstall[] = "uninstall"; // implementations). const char kUseMoreWebUI[] = "use-more-webui"; +// Enables the protector. +const char kUseProtector[] = "use-protector"; + // Uses a pure Views implementation when available (rather than platform-native // implementation such as GTK). const char kUsePureViews[] = "use-pure-views"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 6067d75..da875d6 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -262,7 +262,6 @@ extern const char kProfilingAtStart[]; extern const char kProfilingFile[]; extern const char kProfilingFlush[]; extern const char kPromoServerURL[]; -extern const char kNoProtector[]; extern const char kProxyAutoDetect[]; extern const char kProxyBypassList[]; extern const char kProxyPacUrl[]; @@ -306,6 +305,7 @@ extern const char kTouchOptimizedUI[]; extern const char kTryChromeAgain[]; extern const char kUninstall[]; extern const char kUseMoreWebUI[]; +extern const char kUseProtector[]; extern const char kUsePureViews[]; extern const char kUseSpdy[]; extern const char kIgnoreCertificateErrors[]; |