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

Side by Side Diff: chrome/browser/android/chrome_feature_list.cc

Issue 2716333002: Implement important sites dialog for desktop. (Closed)
Patch Set: extract importantsites dialog to separate dialog Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "chrome/browser/android/chrome_feature_list.h" 5 #include "chrome/browser/android/chrome_feature_list.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 23 matching lines...) Expand all
34 namespace { 34 namespace {
35 35
36 // Array of features exposed through the Java ChromeFeatureList API. Entries in 36 // Array of features exposed through the Java ChromeFeatureList API. Entries in
37 // this array may either refer to features defined in the header of this file or 37 // this array may either refer to features defined in the header of this file or
38 // in other locations in the code base (e.g. chrome/, components/, etc). 38 // in other locations in the code base (e.g. chrome/, components/, etc).
39 const base::Feature* kFeaturesExposedToJava[] = { 39 const base::Feature* kFeaturesExposedToJava[] = {
40 &autofill::kAutofillScanCardholderName, 40 &autofill::kAutofillScanCardholderName,
41 &features::kConsistentOmniboxGeolocation, 41 &features::kConsistentOmniboxGeolocation,
42 &features::kCopylessPaste, 42 &features::kCopylessPaste,
43 &features::kCredentialManagementAPI, 43 &features::kCredentialManagementAPI,
44 &features::kImportantSitesInCbd,
44 &features::kNativeAndroidHistoryManager, 45 &features::kNativeAndroidHistoryManager,
45 &features::kServiceWorkerPaymentApps, 46 &features::kServiceWorkerPaymentApps,
46 &features::kSimplifiedFullscreenUI, 47 &features::kSimplifiedFullscreenUI,
47 &features::kVrShell, 48 &features::kVrShell,
48 &features::kWebPayments, 49 &features::kWebPayments,
49 &kAndroidPayIntegrationV1, 50 &kAndroidPayIntegrationV1,
50 &kAndroidPayIntegrationV2, 51 &kAndroidPayIntegrationV2,
51 &kAndroidPaymentApps, 52 &kAndroidPaymentApps,
52 &kAndroidPaymentAppsFilter, 53 &kAndroidPaymentAppsFilter,
53 &kCCTExternalLinkHandling, 54 &kCCTExternalLinkHandling,
54 &kCCTPostMessageAPI, 55 &kCCTPostMessageAPI,
55 &kChromeHomeFeature, 56 &kChromeHomeFeature,
56 &kContentSuggestionsSettings, 57 &kContentSuggestionsSettings,
57 &kContextualSearchSingleActions, 58 &kContextualSearchSingleActions,
58 &kContextualSearchUrlActions, 59 &kContextualSearchUrlActions,
59 &kCustomContextMenu, 60 &kCustomContextMenu,
60 &kCustomFeedbackUi, 61 &kCustomFeedbackUi,
61 &data_reduction_proxy::features::kDataReductionMainMenu, 62 &data_reduction_proxy::features::kDataReductionMainMenu,
62 &kFullscreenActivity, 63 &kFullscreenActivity,
63 &kImportantSitesInCBD,
64 &kImprovedA2HS, 64 &kImprovedA2HS,
65 &kNewPhotoPicker, 65 &kNewPhotoPicker,
66 &kNoCreditCardAbort, 66 &kNoCreditCardAbort,
67 &kNTPCondensedLayoutFeature, 67 &kNTPCondensedLayoutFeature,
68 &kNTPCondensedTileLayoutFeature, 68 &kNTPCondensedTileLayoutFeature,
69 &kNTPLaunchAfterInactivity, 69 &kNTPLaunchAfterInactivity,
70 &kNTPOfflinePagesFeature, 70 &kNTPOfflinePagesFeature,
71 &NTPShowGoogleGInOmniboxFeature, 71 &NTPShowGoogleGInOmniboxFeature,
72 &kPhysicalWebFeature, 72 &kPhysicalWebFeature,
73 &kPhysicalWebSharing, 73 &kPhysicalWebSharing,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", 139 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi",
140 base::FEATURE_DISABLED_BY_DEFAULT}; 140 base::FEATURE_DISABLED_BY_DEFAULT};
141 141
142 const base::Feature kDownloadAutoResumptionThrottling{ 142 const base::Feature kDownloadAutoResumptionThrottling{
143 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; 143 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT};
144 144
145 const base::Feature kFullscreenActivity{"FullscreenActivity", 145 const base::Feature kFullscreenActivity{"FullscreenActivity",
146 base::FEATURE_ENABLED_BY_DEFAULT}; 146 base::FEATURE_ENABLED_BY_DEFAULT};
147 147
148 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD",
149 base::FEATURE_DISABLED_BY_DEFAULT};
150
151 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut 148 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut
152 // URL which opens Chrome in fullscreen. 149 // URL which opens Chrome in fullscreen.
153 const base::Feature kImprovedA2HS{"ImprovedA2HS", 150 const base::Feature kImprovedA2HS{"ImprovedA2HS",
154 base::FEATURE_DISABLED_BY_DEFAULT}; 151 base::FEATURE_DISABLED_BY_DEFAULT};
155 152
156 const base::Feature kNewPhotoPicker{"NewPhotoPicker", 153 const base::Feature kNewPhotoPicker{"NewPhotoPicker",
157 base::FEATURE_DISABLED_BY_DEFAULT}; 154 base::FEATURE_DISABLED_BY_DEFAULT};
158 155
159 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", 156 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort",
160 base::FEATURE_DISABLED_BY_DEFAULT}; 157 base::FEATURE_DISABLED_BY_DEFAULT};
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, 265 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name,
269 jdefault_value); 266 jdefault_value);
270 } 267 }
271 268
272 bool RegisterChromeFeatureListJni(JNIEnv* env) { 269 bool RegisterChromeFeatureListJni(JNIEnv* env) {
273 return RegisterNativesImpl(env); 270 return RegisterNativesImpl(env);
274 } 271 }
275 272
276 } // namespace android 273 } // namespace android
277 } // namespace chrome 274 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698