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

Unified Diff: content/browser/browser_plugin/test_browser_plugin_guest.cc

Issue 283623002: Add support for passing an arbitrary parameter to an IPC message handler. The motivation is for Web… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 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: content/browser/browser_plugin/test_browser_plugin_guest.cc
===================================================================
--- content/browser/browser_plugin/test_browser_plugin_guest.cc (revision 270218)
+++ content/browser/browser_plugin/test_browser_plugin_guest.cc (working copy)
@@ -36,9 +36,9 @@
void TestBrowserPluginGuest::SendMessageToEmbedder(IPC::Message* msg) {
if (msg->type() == BrowserPluginMsg_UpdateRect::ID) {
update_rect_count_++;
- int instance_id = 0;
- BrowserPluginMsg_UpdateRect_Params params;
- BrowserPluginMsg_UpdateRect::Read(msg, &instance_id, &params);
+ BrowserPluginMsg_UpdateRect::Param param;
+ BrowserPluginMsg_UpdateRect::Read(msg, &param);
+ BrowserPluginMsg_UpdateRect_Params params = param.b;
last_view_size_observed_ = params.view_size;
if (!expected_auto_view_size_.IsEmpty() &&
expected_auto_view_size_ == params.view_size) {
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider_test.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698