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