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

Unified Diff: chrome/common/render_messages_params.cc

Issue 3311016: Support accept attribute for an <input type=file> element.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/common/render_messages_params.cc
===================================================================
--- chrome/common/render_messages_params.cc (revision 58709)
+++ chrome/common/render_messages_params.cc (working copy)
@@ -1241,6 +1241,7 @@
WriteParam(m, static_cast<int>(p.mode));
WriteParam(m, p.title);
WriteParam(m, p.default_file_name);
+ WriteParam(m, p.accept_types);
}
bool ParamTraits<ViewHostMsg_RunFileChooser_Params>::Read(
@@ -1258,7 +1259,8 @@
p->mode = static_cast<param_type::Mode>(mode);
return
ReadParam(m, iter, &p->title) &&
- ReadParam(m, iter, &p->default_file_name);
+ ReadParam(m, iter, &p->default_file_name) &&
+ ReadParam(m, iter, &p->accept_types);
};
void ParamTraits<ViewHostMsg_RunFileChooser_Params>::Log(
@@ -1283,6 +1285,8 @@
LogParam(p.title, l);
l->append(", ");
LogParam(p.default_file_name, l);
+ l->append(", ");
+ LogParam(p.accept_types, l);
}
void ParamTraits<ViewMsg_ExtensionRendererInfo>::Write(Message* m,

Powered by Google App Engine
This is Rietveld 408576698