diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 23:05:27 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 23:05:27 +0000 |
commit | 79ec41b6f353e04322bb0d73a2f09806ccd53f81 (patch) | |
tree | dc47af484bcb1718f3e4754b720a5fd3d7fb8b0d /chrome/browser | |
parent | cec8588640e68e9fddf73b6f68cedfbaa97080a6 (diff) | |
download | chromium_src-79ec41b6f353e04322bb0d73a2f09806ccd53f81.zip chromium_src-79ec41b6f353e04322bb0d73a2f09806ccd53f81.tar.gz chromium_src-79ec41b6f353e04322bb0d73a2f09806ccd53f81.tar.bz2 |
Provide an option to turn on the new SafeBrowsing storage system
via a command line flag ("--new-safe-browsing").
This is to ease testing and is not yet ready for production use.
Review URL: http://codereview.chromium.org/6390
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_database.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc index 06009ce..d09a85f 100644 --- a/chrome/browser/safe_browsing/safe_browsing_database.cc +++ b/chrome/browser/safe_browsing/safe_browsing_database.cc @@ -4,11 +4,13 @@ #include "chrome/browser/safe_browsing/safe_browsing_database.h" +#include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #include "base/sha2.h" #include "chrome/browser/safe_browsing/safe_browsing_database_impl.h" #include "chrome/browser/safe_browsing/safe_browsing_database_bloom.h" +#include "chrome/common/chrome_switches.h" #include "googleurl/src/gurl.h" // Filename suffix for the bloom filter. @@ -16,6 +18,8 @@ static const wchar_t kBloomFilterFile[] = L" Filter"; // Factory method. SafeBrowsingDatabase* SafeBrowsingDatabase::Create() { + if (CommandLine().HasSwitch(switches::kUseNewSafeBrowsing)) + return new SafeBrowsingDatabaseBloom; return new SafeBrowsingDatabaseImpl; } |