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

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

Issue 2715013002: [Payments] Put Web Payments feature on desktop behind flag (Closed)
Patch Set: Initial Created 3 years, 9 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 (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 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 {"enable-loading-ipc-optimization-for-small-resources", 2020 {"enable-loading-ipc-optimization-for-small-resources",
2021 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 2021 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
2022 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 2022 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
2023 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 2023 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
2024 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME, 2024 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME,
2025 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 2025 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
2026 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 2026 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
2027 {"enable-framebusting-needs-sameorigin-or-usergesture", 2027 {"enable-framebusting-needs-sameorigin-or-usergesture",
2028 IDS_FLAGS_FRAMEBUSTING_NAME, IDS_FLAGS_FRAMEBUSTING_DESCRIPTION, kOsAll, 2028 IDS_FLAGS_FRAMEBUSTING_NAME, IDS_FLAGS_FRAMEBUSTING_DESCRIPTION, kOsAll,
2029 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)}, 2029 FEATURE_VALUE_TYPE(features::kFramebustingNeedsSameOriginOrUserGesture)},
2030 {"web-payments", IDS_FLAGS_WEB_PAYMENTS_NAME,
2031 IDS_FLAGS_WEB_PAYMENTS_DESCRIPTION, kOsDesktop,
2032 FEATURE_VALUE_TYPE(features::kWebPayments)},
2030 #if defined(OS_ANDROID) 2033 #if defined(OS_ANDROID)
2031 {"enable-android-pay-integration-v1", 2034 {"enable-android-pay-integration-v1",
2032 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_NAME, 2035 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_NAME,
2033 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_DESCRIPTION, kOsAndroid, 2036 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_DESCRIPTION, kOsAndroid,
2034 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)}, 2037 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)},
2035 {"enable-android-pay-integration-v2", 2038 {"enable-android-pay-integration-v2",
2036 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V2_NAME, 2039 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V2_NAME,
2037 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V2_DESCRIPTION, kOsAndroid, 2040 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V2_DESCRIPTION, kOsAndroid,
2038 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV2)}, 2041 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV2)},
2039 {"enable-web-payments-single-app-ui-skip", 2042 {"enable-web-payments-single-app-ui-skip",
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2494 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2492 2495
2493 const FeatureEntry* GetFeatureEntries(size_t* count) { 2496 const FeatureEntry* GetFeatureEntries(size_t* count) {
2494 *count = arraysize(kFeatureEntries); 2497 *count = arraysize(kFeatureEntries);
2495 return kFeatureEntries; 2498 return kFeatureEntries;
2496 } 2499 }
2497 2500
2498 } // namespace testing 2501 } // namespace testing
2499 2502
2500 } // namespace about_flags 2503 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698