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

Unified Diff: chrome/browser/autofill/autofill_scanner.cc

Issue 7014011: Change heuristic regex and order to match grabber-continental. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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: 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();
Ilya Sherman 2011/05/13 00:54:53 (See also the comment below) Let's instead have t
+}
+
+size_t AutofillScanner::SaveCursor() {
saved_cursors_.push_back(cursor_);
+ size_t index = saved_cursors_.size();
Ilya Sherman 2011/05/13 00:54:53 Let's instead have this be size_t index = cursor_
+ return index;
}

Powered by Google App Engine
This is Rietveld 408576698