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

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

Issue 2676893002: [Android History] Fix chrome://history redirect (Closed)
Patch Set: [Android History] Fix chrome://history redirect Created 3 years, 10 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 17 matching lines...) Expand all
28 28
29 namespace { 29 namespace {
30 30
31 // Array of features exposed through the Java ChromeFeatureList API. Entries in 31 // Array of features exposed through the Java ChromeFeatureList API. Entries in
32 // this array may either refer to features defined in the header of this file or 32 // this array may either refer to features defined in the header of this file or
33 // in other locations in the code base (e.g. chrome/, components/, etc). 33 // in other locations in the code base (e.g. chrome/, components/, etc).
34 const base::Feature* kFeaturesExposedToJava[] = { 34 const base::Feature* kFeaturesExposedToJava[] = {
35 &autofill::kAutofillScanCardholderName, 35 &autofill::kAutofillScanCardholderName,
36 &features::kConsistentOmniboxGeolocation, 36 &features::kConsistentOmniboxGeolocation,
37 &features::kCredentialManagementAPI, 37 &features::kCredentialManagementAPI,
38 &features::kNativeAndroidHistoryManager,
38 &features::kServiceWorkerPaymentApps, 39 &features::kServiceWorkerPaymentApps,
39 &features::kSimplifiedFullscreenUI, 40 &features::kSimplifiedFullscreenUI,
40 &features::kVrShell, 41 &features::kVrShell,
41 &features::kWebPayments, 42 &features::kWebPayments,
42 &kAndroidPayIntegrationV1, 43 &kAndroidPayIntegrationV1,
43 &kAndroidPayIntegrationV2, 44 &kAndroidPayIntegrationV2,
44 &kAndroidPaymentApps, 45 &kAndroidPaymentApps,
45 &kCCTExternalLinkHandling, 46 &kCCTExternalLinkHandling,
46 &kCCTPostMessageAPI, 47 &kCCTPostMessageAPI,
47 &kChromeHomeFeature, 48 &kChromeHomeFeature,
48 &kContextualSearchSingleActions, 49 &kContextualSearchSingleActions,
49 &kImportantSitesInCBD, 50 &kImportantSitesInCBD,
50 &kImprovedA2HS, 51 &kImprovedA2HS,
51 &kNativeAndroidHistoryManager,
52 &kNoCreditCardAbort, 52 &kNoCreditCardAbort,
53 &kNTPFakeOmniboxTextFeature, 53 &kNTPFakeOmniboxTextFeature,
54 &kNTPOfflinePagesFeature, 54 &kNTPOfflinePagesFeature,
55 &kNTPSuggestionsStandaloneUIFeature, 55 &kNTPSuggestionsStandaloneUIFeature,
56 &kPhysicalWebFeature, 56 &kPhysicalWebFeature,
57 &kSpecialLocaleFeature, 57 &kSpecialLocaleFeature,
58 &kSpecialLocaleWrapper, 58 &kSpecialLocaleWrapper,
59 &kTabsInCBD, 59 &kTabsInCBD,
60 &kTabReparenting, 60 &kTabReparenting,
61 &kWebPaymentsModifiers, 61 &kWebPaymentsModifiers,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; 99 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT};
100 100
101 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", 101 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD",
102 base::FEATURE_DISABLED_BY_DEFAULT}; 102 base::FEATURE_DISABLED_BY_DEFAULT};
103 103
104 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut 104 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut
105 // URL which opens Chrome in fullscreen. 105 // URL which opens Chrome in fullscreen.
106 const base::Feature kImprovedA2HS{"ImprovedA2HS", 106 const base::Feature kImprovedA2HS{"ImprovedA2HS",
107 base::FEATURE_DISABLED_BY_DEFAULT}; 107 base::FEATURE_DISABLED_BY_DEFAULT};
108 108
109 const base::Feature kNativeAndroidHistoryManager{
110 "AndroidHistoryManager", base::FEATURE_DISABLED_BY_DEFAULT};
111
112 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", 109 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort",
113 base::FEATURE_DISABLED_BY_DEFAULT}; 110 base::FEATURE_DISABLED_BY_DEFAULT};
114 111
115 const base::Feature kNTPFakeOmniboxTextFeature{ 112 const base::Feature kNTPFakeOmniboxTextFeature{
116 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT}; 113 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT};
117 114
118 const base::Feature kNTPOfflinePagesFeature{"NTPOfflinePages", 115 const base::Feature kNTPOfflinePagesFeature{"NTPOfflinePages",
119 base::FEATURE_ENABLED_BY_DEFAULT}; 116 base::FEATURE_ENABLED_BY_DEFAULT};
120 117
121 const base::Feature kNTPSuggestionsStandaloneUIFeature{ 118 const base::Feature kNTPSuggestionsStandaloneUIFeature{
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 NOTREACHED(); 176 NOTREACHED();
180 return jdefault_value; 177 return jdefault_value;
181 } 178 }
182 179
183 bool RegisterChromeFeatureListJni(JNIEnv* env) { 180 bool RegisterChromeFeatureListJni(JNIEnv* env) {
184 return RegisterNativesImpl(env); 181 return RegisterNativesImpl(env);
185 } 182 }
186 183
187 } // namespace android 184 } // namespace android
188 } // namespace chrome 185 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698