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

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

Issue 6213002: Propagate correct data to the Toolbar servers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/form_structure.cc
===================================================================
--- chrome/browser/autofill/form_structure.cc (revision 70750)
+++ chrome/browser/autofill/form_structure.cc (working copy)
@@ -105,6 +105,7 @@
FormStructure::~FormStructure() {}
bool FormStructure::EncodeUploadRequest(bool auto_fill_used,
+ char const* present_data,
std::string* encoded_xml) const {
DCHECK(encoded_xml);
encoded_xml->clear();
@@ -128,9 +129,8 @@
autofil_request_xml.SetAttr(buzz::QName(kAttributeAutoFillUsed),
auto_fill_used ? "true" : "false");
- // TODO(jhawkins): Hook this up to the personal data manager.
- // personaldata_manager_->GetDataPresent();
- autofil_request_xml.SetAttr(buzz::QName(kAttributeDataPresent), "");
+ autofil_request_xml.SetAttr(buzz::QName(kAttributeDataPresent),
+ present_data);
if (!EncodeFormRequest(FormStructure::UPLOAD, &autofil_request_xml))
return false; // Malformed form, skip it.

Powered by Google App Engine
This is Rietveld 408576698