| Index: chrome/browser/autofill/autofill_scanner.cc
|
| diff --git a/chrome/browser/autofill/autofill_scanner.cc b/chrome/browser/autofill/autofill_scanner.cc
|
| index d0302c818836b4bea4ba8240dd1ce3b36d0d0c2c..0638c33356fd2252cd0ed10cc38e90f12e83786d 100644
|
| --- a/chrome/browser/autofill/autofill_scanner.cc
|
| +++ b/chrome/browser/autofill/autofill_scanner.cc
|
| @@ -39,6 +39,14 @@ void AutofillScanner::Rewind() {
|
| saved_cursors_.pop_back();
|
| }
|
|
|
| -void AutofillScanner::SaveCursor() {
|
| +void AutofillScanner::RewindTo(size_t position) {
|
| + saved_cursors_.resize(position);
|
| + cursor_ = saved_cursors_.back();
|
| + saved_cursors_.pop_back();
|
| +}
|
| +
|
| +size_t AutofillScanner::SaveCursor() {
|
| saved_cursors_.push_back(cursor_);
|
| + size_t index = saved_cursors_.size();
|
| + return index;
|
| }
|
|
|