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

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

Issue 2212063002: [Autofill] Implement Autofill Assistant infobar for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ifdef 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
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | components/autofill/core/browser/credit_card.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c5df186070e32d4ba71c69ed2f797eb8a1260aba..792540a02ad96e70eb19b6dff67c99d7cb0ab9a2 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -208,7 +208,7 @@ AutofillManager::AutofillManager(
user_did_accept_upload_prompt_(false),
external_delegate_(NULL),
test_delegate_(NULL),
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_IOS)
autofill_assistant_(this),
#endif
weak_ptr_factory_(this) {
@@ -1288,7 +1288,7 @@ void AutofillManager::Reset() {
new AutofillMetrics::FormEventLogger(false /* is_for_credit_card */));
credit_card_form_event_logger_.reset(
new AutofillMetrics::FormEventLogger(true /* is_for_credit_card */));
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_IOS)
autofill_assistant_.Reset();
#endif
has_logged_autofill_enabled_ = false;
@@ -1330,7 +1330,7 @@ AutofillManager::AutofillManager(AutofillDriver* driver,
unmasking_query_id_(-1),
external_delegate_(NULL),
test_delegate_(NULL),
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_IOS)
autofill_assistant_(this),
#endif
weak_ptr_factory_(this) {
@@ -1781,7 +1781,7 @@ void AutofillManager::ParseForms(const std::vector<FormData>& forms) {
#endif
}
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_IOS)
// When a credit card form is parsed and conditions are met, show an infobar
// prompt for credit card assisted filling. Upon accepting the infobar, the
// form will automatically be filled with the user's information through this
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | components/autofill/core/browser/credit_card.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698