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

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

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: rebase update Created 3 years, 6 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_
6 #define COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_
7 7
8 #include "base/feature_list.h"
9
10 namespace features {
11
12 extern const base::Feature kV4OnlyEnabled;
13
14 } // namespace features
Ilya Sherman 2017/06/12 21:50:29 Please define a separate features.h file for this
chaopeng 2017/06/28 19:21:25 Done.
15
8 namespace safe_browsing { 16 namespace safe_browsing {
9 17
10 // Exposes methods to check whether a particular feature has been enabled 18 // Exposes methods to check whether a particular feature has been enabled
11 // through Finch. 19 // through Finch.
12 namespace V4FeatureList { 20 namespace V4FeatureList {
13 21
14 enum class V4UsageStatus { 22 enum class V4UsageStatus {
15 // The V4 database manager is not even instantiated i.e. is diabled. All 23 // The V4 database manager is not even instantiated i.e. is diabled. All
16 // SafeBrowsing operations use PVer3 code. 24 // SafeBrowsing operations use PVer3 code.
17 V4_DISABLED, 25 V4_DISABLED,
18 26
19 // The V4 database manager is instantiated, and performs background updates, 27 // The V4 database manager is instantiated, and performs background updates,
20 // but all SafeBrowsing verdicts are returned using the PVer3 database. 28 // but all SafeBrowsing verdicts are returned using the PVer3 database.
21 V4_INSTANTIATED, 29 V4_INSTANTIATED,
22 30
23 // Only the V4 database manager is instantiated, PVer3 database manager is 31 // Only the V4 database manager is instantiated, PVer3 database manager is
24 // not. All SafeBrowsing verdicts are returned using PVer4 database. 32 // not. All SafeBrowsing verdicts are returned using PVer4 database.
25 V4_ONLY 33 V4_ONLY
26 }; 34 };
27 35
28 V4UsageStatus GetV4UsageStatus(); 36 V4UsageStatus GetV4UsageStatus();
29 37
30 } // namespace V4FeatureList 38 } // namespace V4FeatureList
31 39
32 } // namespace safe_browsing 40 } // namespace safe_browsing
33 41
34 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_ 42 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_FEATURE_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698