summaryrefslogtreecommitdiffstats
path: root/components/autofill/core/browser/autofill_scanner.cc
diff options
context:
space:
mode:
authorpritam.nikam <pritam.nikam@samsung.com>2014-09-16 17:58:13 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-17 00:58:27 +0000
commitc011630e025f01ffcc8a926e92b9eb413c920b1a (patch)
treef2fe30f8e3c00d485d897690d388fd2d414cf152 /components/autofill/core/browser/autofill_scanner.cc
parent12bec1740abec524ee2cee69fdb73acdc80fe8b0 (diff)
downloadchromium_src-c011630e025f01ffcc8a926e92b9eb413c920b1a.zip
chromium_src-c011630e025f01ffcc8a926e92b9eb413c920b1a.tar.gz
chromium_src-c011630e025f01ffcc8a926e92b9eb413c920b1a.tar.bz2
[Autofill] Autofill fails to fill credit card number when split across fields.
With current autofill implementaion for credit card number field on a secure form that splits up the credit card number across multiple fields fails to fill all fields, and instead it just fills first of the credit card number field. With this patch it solves the problem by book-keeping spilt information to hold the credit card number grouping. BUG=90280 Review URL: https://codereview.chromium.org/381613005 Cr-Commit-Position: refs/heads/master@{#295200}
Diffstat (limited to 'components/autofill/core/browser/autofill_scanner.cc')
-rw-r--r--components/autofill/core/browser/autofill_scanner.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/autofill/core/browser/autofill_scanner.cc b/components/autofill/core/browser/autofill_scanner.cc
index 418362e..c233c1d 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;