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

Side by Side Diff: chrome/common/chrome_features.h

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: Move SFL calls to constructor Created 3 years, 5 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
« no previous file with comments | « chrome/browser/ui/search/local_ntp_browsertest.cc ('k') | chrome/common/chrome_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file defines all the public base::FeatureList features for the chrome 5 // This file defines all the public base::FeatureList features for the chrome
6 // module. 6 // module.
7 7
8 #ifndef CHROME_COMMON_CHROME_FEATURES_H_ 8 #ifndef CHROME_COMMON_CHROME_FEATURES_H_
9 #define CHROME_COMMON_CHROME_FEATURES_H_ 9 #define CHROME_COMMON_CHROME_FEATURES_H_
10 10
11 #include "base/feature_list.h" 11 #include "base/feature_list.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "chrome/common/features.h" 13 #include "chrome/common/features.h"
14 #include "extensions/features/features.h" 14 #include "extensions/features/features.h"
15 #include "ppapi/features/features.h" 15 #include "ppapi/features/features.h"
16 #include "printing/features/features.h" 16 #include "printing/features/features.h"
17 17
18 namespace features { 18 namespace features {
19 19
20 // All features in alphabetical order. The features should be documented 20 // All features in alphabetical order. The features should be documented
21 // alongside the definition of their values in the .cc file. 21 // alongside the definition of their values in the .cc file.
22 22
23 extern const base::Feature kAdsFeature;
24
23 #if defined(OS_ANDROID) 25 #if defined(OS_ANDROID)
24 extern const base::Feature kAllowAutoplayUnmutedInWebappManifestScope; 26 extern const base::Feature kAllowAutoplayUnmutedInWebappManifestScope;
25 #endif // defined(OS_ANDROID) 27 #endif // defined(OS_ANDROID)
26 28
27 #if defined(OS_MACOSX) 29 #if defined(OS_MACOSX)
28 extern const base::Feature kAppleScriptExecuteJavaScript; 30 extern const base::Feature kAppleScriptExecuteJavaScript;
29 extern const base::Feature kViewsTaskManager; 31 extern const base::Feature kViewsTaskManager;
30 #endif // defined(OS_MACOSX) 32 #endif // defined(OS_MACOSX)
31 33
32 #if !defined(OS_ANDROID) 34 #if !defined(OS_ANDROID)
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 extern const base::Feature kNetworkPrediction; 148 extern const base::Feature kNetworkPrediction;
147 149
148 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; 150 extern const base::Feature kOfflinePageDownloadSuggestionsFeature;
149 151
150 #if !defined(OS_ANDROID) 152 #if !defined(OS_ANDROID)
151 extern const base::Feature kOneGoogleBarOnLocalNtp; 153 extern const base::Feature kOneGoogleBarOnLocalNtp;
152 #endif 154 #endif
153 155
154 extern const base::Feature kPermissionsBlacklist; 156 extern const base::Feature kPermissionsBlacklist;
155 157
158 extern const base::Feature kPreconnectMore;
159
156 #if defined(OS_WIN) 160 #if defined(OS_WIN)
157 extern const base::Feature kDisablePostScriptPrinting; 161 extern const base::Feature kDisablePostScriptPrinting;
158 #endif 162 #endif
159 163
160 #if BUILDFLAG(ENABLE_PLUGINS) 164 #if BUILDFLAG(ENABLE_PLUGINS)
161 extern const base::Feature kPreferHtmlOverPlugins; 165 extern const base::Feature kPreferHtmlOverPlugins;
162 #endif 166 #endif
163 167
164 #if defined(OS_CHROMEOS) 168 #if defined(OS_CHROMEOS)
165 extern const base::Feature kPreloadLockScreen; 169 extern const base::Feature kPreloadLockScreen;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 #endif // defined(OS_CHROMEOS) 230 #endif // defined(OS_CHROMEOS)
227 231
228 bool PrefServiceEnabled(); 232 bool PrefServiceEnabled();
229 233
230 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in 234 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
231 // alphabetical order, or in one of the ifdefs (also in order in each section). 235 // alphabetical order, or in one of the ifdefs (also in order in each section).
232 236
233 } // namespace features 237 } // namespace features
234 238
235 #endif // CHROME_COMMON_CHROME_FEATURES_H_ 239 #endif // CHROME_COMMON_CHROME_FEATURES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/local_ntp_browsertest.cc ('k') | chrome/common/chrome_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698