OLD | NEW |
---|---|
(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 | |
OLD | NEW |