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

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: feature_list file for v4. Add V4Parallel feature. 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 #ifdef NDEBUG
Nathan Parker 2016/09/28 22:25:55 I'm wondering if we should not auto-enable this on
vakh (use Gerrit instead) 2016/09/28 23:00:01 I agree. How about I test all that after submittin
Nathan Parker 2016/09/28 23:50:14 Sure, though the flags look simple: https://g3doc.
11 namespace {
12 const base::Feature kLocalDatabaseManagerEnabled{
13 "SafeBrowsingV4LocalDatabaseManagerEnabled",
14 base::FEATURE_DISABLED_BY_DEFAULT};
15
16 const base::Feature kParallelCheckEnabled{"SafeBrowingV4ParallelCheckEnabled",
17 base::FEATURE_DISABLED_BY_DEFAULT};
18 } // namespace
19 #endif
20
21 bool V4FeatureList::IsLocalDatabaseManagerEnabled() {
22 #ifndef NDEBUG
23 return true;
24 #else
25 return IsV4ParallelCheckEnabled() ||
26 base::FeatureList::IsEnabled(kLocalDatabaseManagerEnabled);
27 #endif
28 }
29
30 bool V4FeatureList::IsParallelCheckEnabled() {
31 #ifndef NDEBUG
32 return true;
33 #else
34 return base::FeatureList::IsEnabled(kParallelCheckEnabled);
35 #endif
36 }
37
38 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698