Commit c3fd7cde authored by Moe Ahmadi's avatar Moe Ahmadi Committed by Commit Bot

[AF] Controls upstreaming credit cards from chrome://flags

Adds an entry to about flags page in iOS in order to control the feature.

Bug: 841758
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Id61d8f4a63f0c6a89ec4c643640e1870d58c2ae7
Reviewed-on: https://chromium-review.googlesource.com/1055904
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Reviewed-by: default avatarPeter Lee <pkl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558026}
parent 50491f19
......@@ -20,6 +20,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/sys_string_conversions.h"
#include "base/sys_info.h"
#include "components/autofill/core/browser/autofill_experiments.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/ios/browser/autofill_switches.h"
#include "components/dom_distiller/core/dom_distiller_switches.h"
......@@ -216,6 +217,10 @@ const flags_ui::FeatureEntry kFeatureEntries[] = {
flag_descriptions::kWKHTTPSystemCookieStoreName,
flag_descriptions::kWKHTTPSystemCookieStoreName, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kWKHTTPSystemCookieStore)},
{"enable-autofill-credit-card-upload",
flag_descriptions::kAutofillCreditCardUploadName,
flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(autofill::kAutofillUpstream)},
{"enable-autofill-credit-card-upload-google-pay-branding",
flag_descriptions::kAutofillUpstreamUseGooglePayBrandingOnMobileName,
flag_descriptions::
......
......@@ -11,11 +11,17 @@
namespace flag_descriptions {
const char kAutofillCreditCardUploadName[] =
"Offers uploading Autofilled credit cards";
const char kAutofillCreditCardUploadDescription[] =
"Offers uploading Autofilled credit cards to Google Payments after form "
"submission.";
const char kAutofillUpstreamUseGooglePayBrandingOnMobileName[] =
"Enable Google Pay branding when offering credit card upload";
const char kAutofillUpstreamUseGooglePayBrandingOnMobileDescription[] =
"If enabled, shows the Google Pay logo and a shorter header message when "
"credit card upload to Google Payments is offered.";
"When enabled, shows the Google Pay logo and a shorter header message when "
"offering credit card upload to Google Payments.";
const char kAutofillIOSDelayBetweenFieldsName[] = "Autofill delay";
const char kAutofillIOSDelayBetweenFieldsDescription[] =
......
......@@ -7,6 +7,10 @@
namespace flag_descriptions {
// Title and description for the flag to control upstreaming credit cards.
extern const char kAutofillCreditCardUploadName[];
extern const char kAutofillCreditCardUploadDescription[];
// Title and description for the flag to control GPay branding in credit card
// upstream infobar.
extern const char kAutofillUpstreamUseGooglePayBrandingOnMobileName[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment