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

Unified Diff: components/autofill/browser/autofill_xml_parser.cc

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit tests Created 7 years, 6 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/browser/autofill_xml_parser.cc
diff --git a/components/autofill/browser/autofill_xml_parser.cc b/components/autofill/browser/autofill_xml_parser.cc
index bf8674d585b1aa3e5ee881c25ef123d99dc4014e..679c8199ee34393e638946307336b82968ad5ac2 100644
--- a/components/autofill/browser/autofill_xml_parser.cc
+++ b/components/autofill/browser/autofill_xml_parser.cc
@@ -119,6 +119,8 @@ void AutofillQueryXmlParser::StartElement(buzz::XmlParseContext* context,
page_meta_data_->current_page_number = GetIntValue(context, *attrs);
else if (attribute_name.compare("total_pages") == 0)
page_meta_data_->total_pages = GetIntValue(context, *attrs);
+ else if (attribute_name.compare("ignore_ajax") == 0)
+ page_meta_data_->ignore_ajax = strcmp(*attrs, "true") == 0;
++attrs;
}
} else if (element.compare("page_advance_button") == 0) {

Powered by Google App Engine
This is Rietveld 408576698