summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorlzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 21:23:40 +0000
committerlzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 21:23:40 +0000
commit01e9ffa3e5962fee4e07ec7ff82eca32348a0416 (patch)
tree27c742e1d75b773e09d26d596f1b2ab18ff81f84 /chrome/common
parent227182ae985b88ee2de229e38875000980fe7baf (diff)
downloadchromium_src-01e9ffa3e5962fee4e07ec7ff82eca32348a0416.zip
chromium_src-01e9ffa3e5962fee4e07ec7ff82eca32348a0416.tar.gz
chromium_src-01e9ffa3e5962fee4e07ec7ff82eca32348a0416.tar.bz2
And a flag to disable safebrowsing warning ui.
TEST=none BUG=none Review URL: http://codereview.chromium.org/6602053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc7
-rw-r--r--chrome/common/chrome_switches.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 60be9b6..d06a4e8 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -1107,6 +1107,13 @@ const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
// to make sure the content are not malicious.
const char kSbEnableDownloadProtection[] = "safebrowsing-download-protection";
+// This flag is used together with kSbEnableDownloadProtection. When that flag
+// is present but this flag is absent, we won't show the warning ui. The purpose
+// of this flag is to make sure we roll out download url detection smoothly.
+// We will remove this flag once we verify that the download url detection works
+// as expectecd according to UMA reports.
+const char kSbEnableDownloadWarningUI[] = "safebrowsing-download-warning-ui";
+
// Enable support for SDCH filtering (dictionary based expansion of content).
// Optional argument is *the* only domain name that will have SDCH suppport.
// Default is "-enable-sdch" to advertise SDCH on all domains.
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index a9078d2..e12be32 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -308,6 +308,7 @@ extern const char kSbInfoURLPrefix[];
extern const char kSbMacKeyURLPrefix[];
extern const char kSbDisableAutoUpdate[];
extern const char kSbEnableDownloadProtection[];
+extern const char kSbEnableDownloadWarningUI[];
extern const char kSdchFilter[];
extern const char kSearchInOmniboxHint[];
extern const char kServiceProcess[];