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 namespace { |
| 13 const base::Feature kLocalDatabaseManagerEnabled{ |
| 14 "SafeBrowsingV4LocalDatabaseManagerEnabled", |
| 15 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 16 |
| 17 const base::Feature kParallelCheckEnabled{"SafeBrowingV4ParallelCheckEnabled", |
| 18 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 19 } // namespace |
| 20 |
| 21 bool IsLocalDatabaseManagerEnabled() { |
| 22 return IsParallelCheckEnabled() || |
| 23 base::FeatureList::IsEnabled(kLocalDatabaseManagerEnabled); |
| 24 } |
| 25 |
| 26 bool IsParallelCheckEnabled() { |
| 27 return base::FeatureList::IsEnabled(kParallelCheckEnabled); |
| 28 } |
| 29 |
| 30 } // namespace V4FeatureList |
| 31 |
| 32 } // namespace safe_browsing |
OLD | NEW |