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

Unified Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 10907102: Add a PepperHelper::EnablePepperSupportForChannel function to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/nacl_process_host.cc
===================================================================
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 155271)
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
@@ -34,6 +34,7 @@
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/child_process_data.h"
+#include "content/public/browser/pepper_helper.h"
#include "content/public/common/child_process_host.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_switches.h"
@@ -711,6 +712,10 @@
IPC::Channel::MODE_CLIENT,
&ipc_plugin_listener_,
base::MessageLoopProxy::current()));
+ // Enable PPAPI message dispatching to the browser process.
+ content::EnablePepperSupportForChannel(
+ ipc_proxy_channel_.get(),
+ chrome_render_message_filter_->GetHostResolver());
// Send a message to create the NaCl-Renderer channel. The handle is just
// a place holder.
ipc_proxy_channel_->Send(
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698