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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 61063003: Keep NaCl plugins used in app background pages alive when active. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: working prototype Created 7 years, 1 month 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/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index fbf512a7419d877cff880b37cc01af041be6be36..4efa5c42d9dee0a77e8755eaf7996cb85dbc8462 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -213,10 +213,10 @@ PpapiPluginProcessHost::PpapiPluginProcessHost(
process_.reset(new BrowserChildProcessHostImpl(
PROCESS_TYPE_PPAPI_PLUGIN, this));
- host_impl_.reset(new BrowserPpapiHostImpl(this, permissions_, info.name,
- info.path, profile_data_directory,
- false /* in_process */,
- false /* external_plugin */));
+ host_impl_ = new BrowserPpapiHostImpl(NULL, this, permissions_, info.name,
+ info.path, profile_data_directory,
+ false /* in_process */,
+ false /* external_plugin */);
filter_ = new PepperMessageFilter();
process_->AddFilter(filter_.get());
@@ -237,11 +237,11 @@ PpapiPluginProcessHost::PpapiPluginProcessHost()
ppapi::PpapiPermissions permissions; // No permissions.
// The plugin name, path and profile data directory shouldn't be needed for
// the broker.
- host_impl_.reset(new BrowserPpapiHostImpl(this, permissions,
- std::string(), base::FilePath(),
- base::FilePath(),
- false /* in_process */,
- false /* external_plugin */));
+ host_impl_ = new BrowserPpapiHostImpl(NULL, this, permissions,
dmichael (off chromium) 2013/11/06 22:39:21 This looks kind of messy, since that argument is o
scheib 2013/11/15 01:22:17 Done.
+ std::string(), base::FilePath(),
+ base::FilePath(),
+ false /* in_process */,
+ false /* external_plugin */);
}
bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) {

Powered by Google App Engine
This is Rietveld 408576698