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

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

Issue 2437593007: [Payments] Field trial and flag to abort payment request if no card. (Closed)
Patch Set: Rebase 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 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 #if defined(OS_CHROMEOS) 2057 #if defined(OS_CHROMEOS)
2058 {"enumerate-audio-devices", IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_NAME, 2058 {"enumerate-audio-devices", IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_NAME,
2059 IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_DESCRIPTION, kOsCrOS, 2059 IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_DESCRIPTION, kOsCrOS,
2060 FEATURE_VALUE_TYPE(features::kEnumerateAudioDevices)}, 2060 FEATURE_VALUE_TYPE(features::kEnumerateAudioDevices)},
2061 #endif // OS_CHROMEOS 2061 #endif // OS_CHROMEOS
2062 #if !defined(OS_ANDROID) 2062 #if !defined(OS_ANDROID)
2063 {"enable-default-media-session", 2063 {"enable-default-media-session",
2064 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_NAME, 2064 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_NAME,
2065 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DESCRIPTION, kOsDesktop, 2065 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DESCRIPTION, kOsDesktop,
2066 MULTI_VALUE_TYPE(kEnableDefaultMediaSessionChoices)}, 2066 MULTI_VALUE_TYPE(kEnableDefaultMediaSessionChoices)},
2067 #endif // !defined(OS_ANDROID) 2067 {"no-card-abort", IDS_FLAGS_NO_CARD_ABORT,
2068 IDS_FLAGS_NO_CARD_ABORT_DESCRIPTION, kOsAndroid,
2069 FEATURE_VALUE_TYPE(chrome::android::kNoCreditCardAbort)},
2070 #endif // OS_ANDROID
2068 // NOTE: Adding new command-line switches requires adding corresponding 2071 // NOTE: Adding new command-line switches requires adding corresponding
2069 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2072 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2070 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2073 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2071 }; 2074 };
2072 2075
2073 class FlagsStateSingleton { 2076 class FlagsStateSingleton {
2074 public: 2077 public:
2075 FlagsStateSingleton() 2078 FlagsStateSingleton()
2076 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2079 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2077 ~FlagsStateSingleton() {} 2080 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2269 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2267 2270
2268 const FeatureEntry* GetFeatureEntries(size_t* count) { 2271 const FeatureEntry* GetFeatureEntries(size_t* count) {
2269 *count = arraysize(kFeatureEntries); 2272 *count = arraysize(kFeatureEntries);
2270 return kFeatureEntries; 2273 return kFeatureEntries;
2271 } 2274 }
2272 2275
2273 } // namespace testing 2276 } // namespace testing
2274 2277
2275 } // namespace about_flags 2278 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698