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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2429033002: [TTS] Add a Feature and about:flag for Single Actions. (Closed)
Patch Set: Reverted changes to FeatureUtilities (no longer needed). Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 {"contextual-search", IDS_FLAGS_CONTEXTUAL_SEARCH, 737 {"contextual-search", IDS_FLAGS_CONTEXTUAL_SEARCH,
738 IDS_FLAGS_CONTEXTUAL_SEARCH_DESCRIPTION, kOsAndroid, 738 IDS_FLAGS_CONTEXTUAL_SEARCH_DESCRIPTION, kOsAndroid,
739 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableContextualSearch, 739 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableContextualSearch,
740 switches::kDisableContextualSearch)}, 740 switches::kDisableContextualSearch)},
741 {"cs-contextual-cards-bar-integration", 741 {"cs-contextual-cards-bar-integration",
742 IDS_FLAGS_CONTEXTUAL_SEARCH_CONTEXTUAL_CARDS_BAR_INTEGRATION, 742 IDS_FLAGS_CONTEXTUAL_SEARCH_CONTEXTUAL_CARDS_BAR_INTEGRATION,
743 IDS_FLAGS_CONTEXTUAL_SEARCH_CONTEXTUAL_CARDS_BAR_INTEGRATION_DESCRIPTION, 743 IDS_FLAGS_CONTEXTUAL_SEARCH_CONTEXTUAL_CARDS_BAR_INTEGRATION_DESCRIPTION,
744 kOsAndroid, 744 kOsAndroid,
745 SINGLE_VALUE_TYPE( 745 SINGLE_VALUE_TYPE(
746 switches::kEnableContextualSearchContextualCardsBarIntegration)}, 746 switches::kEnableContextualSearchContextualCardsBarIntegration)},
747 {"cs-contextual-cards-single-actions",
748 IDS_FLAGS_CONTEXTUAL_SEARCH_SINGLE_ACTIONS,
749 IDS_FLAGS_CONTEXTUAL_SEARCH_SINGLE_ACTIONS_DESCRIPTION, kOsAndroid,
750 FEATURE_VALUE_TYPE(chrome::android::kContextualSearchSingleActions)},
747 #endif // OS_ANDROID 751 #endif // OS_ANDROID
748 {"show-autofill-type-predictions", 752 {"show-autofill-type-predictions",
749 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_NAME, 753 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_NAME,
750 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_DESCRIPTION, kOsAll, 754 IDS_FLAGS_SHOW_AUTOFILL_TYPE_PREDICTIONS_DESCRIPTION, kOsAll,
751 SINGLE_VALUE_TYPE(autofill::switches::kShowAutofillTypePredictions)}, 755 SINGLE_VALUE_TYPE(autofill::switches::kShowAutofillTypePredictions)},
752 {"enable-credit-card-signin-promo", 756 {"enable-credit-card-signin-promo",
753 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_SIGNIN_PROMO_NAME, 757 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_SIGNIN_PROMO_NAME,
754 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_SIGNIN_PROMO_DESCRIPTION, kOsAll, 758 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_SIGNIN_PROMO_DESCRIPTION, kOsAll,
755 FEATURE_VALUE_TYPE(autofill::kAutofillCreditCardSigninPromo)}, 759 FEATURE_VALUE_TYPE(autofill::kAutofillCreditCardSigninPromo)},
756 {"smooth-scrolling", IDS_FLAGS_SMOOTH_SCROLLING_NAME, 760 {"smooth-scrolling", IDS_FLAGS_SMOOTH_SCROLLING_NAME,
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2270 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2267 2271
2268 const FeatureEntry* GetFeatureEntries(size_t* count) { 2272 const FeatureEntry* GetFeatureEntries(size_t* count) {
2269 *count = arraysize(kFeatureEntries); 2273 *count = arraysize(kFeatureEntries);
2270 return kFeatureEntries; 2274 return kFeatureEntries;
2271 } 2275 }
2272 2276
2273 } // namespace testing 2277 } // namespace testing
2274 2278
2275 } // namespace about_flags 2279 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698