summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_database.cc
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 04:07:46 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 04:07:46 +0000
commitb7c2e29503c528f053cd8659e1fbe3cbff427e86 (patch)
tree77cb87936ec3c8229d5ca4dc95c5d7d89ed007b7 /chrome/browser/safe_browsing/safe_browsing_database.cc
parent80a2efb4e0f68b5f4f268abdbb807abce0d2925b (diff)
downloadchromium_src-b7c2e29503c528f053cd8659e1fbe3cbff427e86.zip
chromium_src-b7c2e29503c528f053cd8659e1fbe3cbff427e86.tar.gz
chromium_src-b7c2e29503c528f053cd8659e1fbe3cbff427e86.tar.bz2
Make SafeBrowsingStoreFile the default store for developers.
Get some early coverage by opting developers into the experiment. BUG=28647 TEST=Developers don't complain. Review URL: http://codereview.chromium.org/3389025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_database.cc')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc
index c62aecd..e137d86 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database.cc
@@ -176,7 +176,13 @@ SafeBrowsingDatabase* SafeBrowsingDatabase::Create() {
} else {
// Default.
DCHECK(value.empty());
+#if defined(NDEBUG)
return new SafeBrowsingDatabaseNew(new SafeBrowsingStoreSqlite);
+#else
+ // Turn on the file store for developers to get some early
+ // coverage.
+ return new SafeBrowsingDatabaseNew(new SafeBrowsingStoreFile);
+#endif
}
}