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

Unified Diff: chrome/renderer/pepper/pepper_helper.cc

Issue 290553004: PPAPI: Refactor MessageChannel to prep for sync postMessae (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix in-process. Make Chrome tell content when a plugin is a host for external plugins (i.e., NaCl) 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: chrome/renderer/pepper/pepper_helper.cc
diff --git a/chrome/renderer/pepper/pepper_helper.cc b/chrome/renderer/pepper/pepper_helper.cc
index a610a30dfff5f331db1aa8d9779bb77cc1d1d73d..0fd3d62f77cafde2e8f850e847ceba328d8a3252 100644
--- a/chrome/renderer/pepper/pepper_helper.cc
+++ b/chrome/renderer/pepper/pepper_helper.cc
@@ -23,4 +23,8 @@ void PepperHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
host->GetPpapiHost()->AddInstanceMessageFilter(
scoped_ptr<ppapi::host::InstanceMessageFilter>(
new PepperSharedMemoryMessageFilter(host)));
+
+ // The Native Client plugin is a host for external plugins.
+ if (host->GetPluginName() == "Native Client")
+ host->SetToExternalPluginHost();
}
« no previous file with comments | « no previous file | content/public/renderer/renderer_ppapi_host.h » ('j') | content/public/renderer/renderer_ppapi_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698