 Chromium Code Reviews
 Chromium Code Reviews Issue 11539003:
  Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au…  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master
    
  
    Issue 11539003:
  Pop up requestAutocomplete UI when autofill server hints chrome client that it is in a multipage au…  (Closed) 
  Base URL: http://git.chromium.org/chromium/src.git@master| Index: chrome/browser/autofill/autofill_xml_parser.cc | 
| diff --git a/chrome/browser/autofill/autofill_xml_parser.cc b/chrome/browser/autofill/autofill_xml_parser.cc | 
| index 92a1ede91c0f94dbc96794d4060b2c51af488145..ef2e4ba24fd18716e687e2b7a9a1b65775bea4b6 100644 | 
| --- a/chrome/browser/autofill/autofill_xml_parser.cc | 
| +++ b/chrome/browser/autofill/autofill_xml_parser.cc | 
| @@ -33,6 +33,8 @@ AutofillQueryXmlParser::AutofillQueryXmlParser( | 
| std::string* experiment_id) | 
| : field_types_(field_types), | 
| upload_required_(upload_required), | 
| + current_page_number_(-1), | 
| + total_pages_(-1), | 
| experiment_id_(experiment_id) { | 
| DCHECK(upload_required_); | 
| DCHECK(experiment_id_); | 
| @@ -89,6 +91,19 @@ void AutofillQueryXmlParser::StartElement(buzz::XmlParseContext* context, | 
| // Record this field type. | 
| field_types_->push_back(field_type); | 
| + } else if (element.compare("autofill_flow") == 0) { | 
| + // |attrs| is a NULL-terminated list of (attribute, value) pairs. | 
| + while (*attrs) { | 
| + buzz::QName attribute_qname = context->ResolveQName(*attrs, true); | 
| + ++attrs; | 
| + const std::string& attribute_name = attribute_qname.LocalPart(); | 
| + if (attribute_name.compare("page_no") == 0) { | 
| + current_page_number_ = GetIntValue(context, *attrs); | 
| + } else if (attribute_name.compare("total_pages") == 0) { | 
| + total_pages_ = GetIntValue(context, *attrs); | 
| + } | 
| 
Ilya Sherman
2013/01/15 06:31:52
nit: No need for curlies.
 
Raman Kakilate
2013/01/15 23:02:33
Done.
 | 
| + ++attrs; | 
| + } | 
| } | 
| } |