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

Unified Diff: content/browser/plugin_loader_posix.cc

Issue 9317074: Create an API around UtilityProcessHost and use that from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « content/browser/plugin_loader_posix.h ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_loader_posix.cc
===================================================================
--- content/browser/plugin_loader_posix.cc (revision 120256)
+++ content/browser/plugin_loader_posix.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/metrics/histogram.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/utility_messages.h"
+#include "content/browser/utility_process_host_impl.h"
#include "content/public/browser/browser_thread.h"
#include "webkit/plugins/npapi/plugin_list.h"
@@ -102,11 +103,12 @@
if (load_start_time_.is_null())
load_start_time_ = base::TimeTicks::Now();
- process_host_ =
- (new UtilityProcessHost(this, BrowserThread::IO))->AsWeakPtr();
- process_host_->set_no_sandbox(true);
+ UtilityProcessHostImpl* host =
+ new UtilityProcessHostImpl(this, BrowserThread::IO);
+ process_host_ = host->AsWeakPtr();
+ process_host_->DisableSandbox();
#if defined(OS_MACOSX)
- process_host_->set_child_flags(ChildProcessHost::CHILD_ALLOW_HEAP_EXECUTION);
+ host->set_child_flags(ChildProcessHost::CHILD_ALLOW_HEAP_EXECUTION);
#endif
process_host_->Send(new UtilityMsg_LoadPlugins(canonical_list_));
« no previous file with comments | « content/browser/plugin_loader_posix.h ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698