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/experimental_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/experimental_flags.h ('k') | ios/chrome/browser/ios_chrome_flag_descriptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index 3e55afffe705303bde742af6e5a6d4b7625518ff..b904c366e009016e299b8cbf8e3f3f03de0fb2ce 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -172,25 +172,6 @@ bool IsPasswordGenerationEnabled() {
return group_name != "Disabled";
}
-bool IsPaymentRequestEnabled() {
- // This call activates the field trial, if needed, so it must come before any
- // early returns.
- std::string group_name =
- base::FieldTrialList::FindFullName("IOSPaymentRequest");
-
- // Check if the experimental flag is forced on or off.
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kEnablePaymentRequest)) {
- return true;
- } else if (command_line->HasSwitch(switches::kDisablePaymentRequest)) {
- return false;
- }
-
- // Check if the Finch experiment is turned on.
- return base::StartsWith(group_name, "Enabled",
- base::CompareCase::INSENSITIVE_ASCII);
-}
-
bool IsPhysicalWebEnabled() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kEnableIOSPhysicalWeb)) {
« no previous file with comments | « ios/chrome/browser/experimental_flags.h ('k') | ios/chrome/browser/ios_chrome_flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698