Commit c919575c authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Disable features that allow editing card info in the save dialog

Clients of ios/web_view still go through the old name and expiration
fixer flows.

Change-Id: I9341d3155ab832f2927ac496964311645272b749
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442031Reviewed-by: default avatarHiroshi Ichikawa <ichikawa@chromium.org>
Commit-Queue: John Wu <jzw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812490}
parent cd3bc90e
......@@ -11,6 +11,7 @@
#include "base/strings/string_util.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/infobars/core/infobar_feature.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "ios/web/public/webui/web_ui_ios_controller_factory.h"
#include "ios/web_view/internal/app/application_context.h"
......@@ -58,7 +59,13 @@ void WebViewWebMainParts::PreCreateThreads() {
password_manager::features::kEnablePasswordsAccountStorage.name,
},
",");
std::string disabled_features = base::JoinString({}, ",");
std::string disabled_features = base::JoinString(
{
// ios/web_view does not support editing card info in the save dialog.
autofill::features::kAutofillSaveCardInfobarEditSupport.name,
kIOSInfobarUIReboot.name,
},
",");
feature_list->InitializeFromCommandLine(
/*enable_features=*/enable_features,
/*disable_features=*/disabled_features);
......
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