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

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

Issue 381613005: [Autofill] Autofill fails to fill credit card number when split across fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated review inputs. Created 6 years, 3 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_scanner.cc
diff --git a/components/autofill/core/browser/autofill_scanner.cc b/components/autofill/core/browser/autofill_scanner.cc
index 418362e4c8cebca9563a8ace2f05fab7ac415a97..c233c1d3ef7c9395d533d6305945846041169c20 100644
--- a/components/autofill/core/browser/autofill_scanner.cc
+++ b/components/autofill/core/browser/autofill_scanner.cc
@@ -9,8 +9,7 @@
namespace autofill {
-AutofillScanner::AutofillScanner(
- const std::vector<const AutofillField*>& fields)
+AutofillScanner::AutofillScanner(std::vector<AutofillField*>& fields)
: cursor_(fields.begin()),
saved_cursor_(fields.begin()),
begin_(fields.begin()),
@@ -25,7 +24,7 @@ void AutofillScanner::Advance() {
++cursor_;
}
-const AutofillField* AutofillScanner::Cursor() const {
+AutofillField* AutofillScanner::Cursor() const {
if (IsEnd()) {
NOTREACHED();
return NULL;
« no previous file with comments | « components/autofill/core/browser/autofill_scanner.h ('k') | components/autofill/core/browser/credit_card_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698