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

Unified Diff: chrome/common/render_messages.h

Issue 2832064: Fix for: State in small letters should be auto-filled from the profile.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/renderer/form_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 52815)
+++ chrome/common/render_messages.h (working copy)
@@ -957,15 +957,18 @@
WriteParam(m, p.value());
WriteParam(m, p.form_control_type());
WriteParam(m, p.size());
+ WriteParam(m, p.option_strings());
}
static bool Read(const Message* m, void** iter, param_type* p) {
string16 label, name, value, form_control_type;
int size = 0;
+ std::vector<string16> options;
bool result = ReadParam(m, iter, &label);
result = result && ReadParam(m, iter, &name);
result = result && ReadParam(m, iter, &value);
result = result && ReadParam(m, iter, &form_control_type);
result = result && ReadParam(m, iter, &size);
+ result = result && ReadParam(m, iter, &options);
if (!result)
return false;
@@ -974,6 +977,7 @@
p->set_value(value);
p->set_form_control_type(form_control_type);
p->set_size(size);
+ p->set_option_strings(options);
return true;
}
static void Log(const param_type& p, std::wstring* l) {
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/renderer/form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698