Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: components/safe_browsing_db/v4_feature_list.cc

Issue 2377273004: Reland: Start checking URLs using PVer4. Verdict not returned to client yet. (Closed)
Patch Set: Remove #DEBUG -- it enables these features on Android :-( Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing_db/v4_feature_list.cc
diff --git a/components/safe_browsing_db/v4_feature_list.cc b/components/safe_browsing_db/v4_feature_list.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a8435edf051f1f2f186def14d363c5ff35dde5e1
--- /dev/null
+++ b/components/safe_browsing_db/v4_feature_list.cc
@@ -0,0 +1,32 @@
+// Copyright 2016 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.
+
+#include "base/feature_list.h"
+#include "components/safe_browsing_db/v4_feature_list.h"
+
+namespace safe_browsing {
+
+namespace V4FeatureList {
+
+namespace {
+const base::Feature kLocalDatabaseManagerEnabled{
+ "SafeBrowsingV4LocalDatabaseManagerEnabled",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+
+const base::Feature kParallelCheckEnabled{"SafeBrowingV4ParallelCheckEnabled",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+} // namespace
+
+bool IsLocalDatabaseManagerEnabled() {
+ return IsParallelCheckEnabled() ||
+ base::FeatureList::IsEnabled(kLocalDatabaseManagerEnabled);
+}
+
+bool IsParallelCheckEnabled() {
+ return base::FeatureList::IsEnabled(kParallelCheckEnabled);
+}
+
+} // namespace V4FeatureList
+
+} // namespace safe_browsing
« no previous file with comments | « components/safe_browsing_db/v4_feature_list.h ('k') | components/safe_browsing_db/v4_local_database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698