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

Unified Diff: ios/chrome/browser/about_flags.mm

Issue 2967273002: [Payments] Add an entry for Payment Request to chrome://flags on iOS (Closed)
Patch Set: deps fix Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/about_flags.mm
diff --git a/ios/chrome/browser/about_flags.mm b/ios/chrome/browser/about_flags.mm
index 4f2bb8c16d5a0738d876196c3839f6054d31ba7d..05639db3c34e362b21db6186b6f2c0fd9d093daf 100644
--- a/ios/chrome/browser/about_flags.mm
+++ b/ios/chrome/browser/about_flags.mm
@@ -26,6 +26,7 @@
#include "components/flags_ui/flags_storage.h"
#include "components/flags_ui/flags_ui_switches.h"
#include "components/ntp_tiles/switches.h"
+#include "components/payments/core/features.h"
#include "components/security_state/core/switches.h"
#include "components/signin/core/common/signin_switches.h"
#include "components/strings/grit/components_strings.h"
@@ -89,6 +90,9 @@ const flags_ui::FeatureEntry kFeatureEntries[] = {
{"mark-non-secure-as", flag_descriptions::kMarkHttpAsName,
flag_descriptions::kMarkHttpAsDescription, flags_ui::kOsIos,
MULTI_VALUE_TYPE(kMarkHttpAsChoices)},
+ {"web-payments", flag_descriptions::kWebPaymentsName,
+ flag_descriptions::kWebPaymentsDescription, flags_ui::kOsIos,
+ FEATURE_VALUE_TYPE(payments::features::kWebPayments)},
};
// Add all switches from experimental flags to |command_line|.
@@ -203,15 +207,6 @@ void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
web::BuildUserAgentFromProduct(product));
}
- // Populate command line flag for the Payment Request API.
- NSString* enable_payment_request =
- [defaults stringForKey:@"EnablePaymentRequest"];
- if ([enable_payment_request isEqualToString:@"Enabled"]) {
- command_line->AppendSwitch(switches::kEnablePaymentRequest);
- } else if ([enable_payment_request isEqualToString:@"Disabled"]) {
- command_line->AppendSwitch(switches::kDisablePaymentRequest);
- }
-
// Populate command line flag for Suggestions UI display.
NSString* enableSuggestions = [defaults stringForKey:@"EnableSuggestions"];
if ([enableSuggestions isEqualToString:@"Enabled"]) {
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698