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

Unified Diff: components/autofill/core/browser/autofill_manager.cc

Issue 2200333002: Remove flags for controlling credit card scanner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove autofill_switches.h include Created 4 years, 4 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
Index: components/autofill/core/browser/autofill_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index 1eddaf56a271eecb2dcc4b95b4059054c51b8c10..3e353ee53aa9f97b562d1ae3ba6e555586db152c 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -50,7 +50,6 @@
#include "components/autofill/core/common/autofill_constants.h"
#include "components/autofill/core/common/autofill_data_validation.h"
#include "components/autofill/core/common/autofill_pref_names.h"
-#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/autofill_util.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_data_predictions.h"
@@ -257,11 +256,6 @@ void AutofillManager::ShowAutofillSettings() {
bool AutofillManager::ShouldShowScanCreditCard(const FormData& form,
const FormFieldData& field) {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableCreditCardScan)) {
- return false;
- }
-
if (!client_->HasCreditCardScanFeature())
return false;

Powered by Google App Engine
This is Rietveld 408576698