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

Side by Side Diff: components/safe_browsing_db/v4_feature_list.cc

Issue 2371043003: Small: Start checking URLs using PVer4. Verdict not returned to client yet. (Closed)
Patch Set: Remove NOTREACHED Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/feature_list.h"
6 #include "components/safe_browsing_db/v4_feature_list.h"
7
8 namespace safe_browsing {
9
10 namespace V4FeatureList {
11
12 #ifdef NDEBUG
13 namespace {
14 const base::Feature kLocalDatabaseManagerEnabled{
15 "SafeBrowsingV4LocalDatabaseManagerEnabled",
16 base::FEATURE_DISABLED_BY_DEFAULT};
17
18 const base::Feature kParallelCheckEnabled{"SafeBrowingV4ParallelCheckEnabled",
19 base::FEATURE_DISABLED_BY_DEFAULT};
20 } // namespace
21 #endif
22
23 bool IsLocalDatabaseManagerEnabled() {
24 #ifndef NDEBUG
25 return true;
26 #else
27 return IsParallelCheckEnabled() ||
28 base::FeatureList::IsEnabled(kLocalDatabaseManagerEnabled);
29 #endif
30 }
31
32 bool IsParallelCheckEnabled() {
33 #ifndef NDEBUG
34 return true;
35 #else
36 return base::FeatureList::IsEnabled(kParallelCheckEnabled);
37 #endif
38 }
39
40 } // namespace V4FeatureList
41
42 } // namespace safe_browsing
OLDNEW
« 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