summaryrefslogtreecommitdiffstats
path: root/content/ppapi_plugin/ppapi_broker_main.cc
diff options
context:
space:
mode:
authorddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-14 02:41:09 +0000
committerddorwin@chromium.org <ddorwin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-14 02:41:09 +0000
commit6407f289f81ac09476e66c59fc4887eb46112981 (patch)
tree290db44c6c93d900582fdd5cee40d210defc6f8e /content/ppapi_plugin/ppapi_broker_main.cc
parent0c534273b9592e78a0e5392449814c13a1e3285c (diff)
downloadchromium_src-6407f289f81ac09476e66c59fc4887eb46112981.zip
chromium_src-6407f289f81ac09476e66c59fc4887eb46112981.tar.gz
chromium_src-6407f289f81ac09476e66c59fc4887eb46112981.tar.bz2
Added ppp_broker.h and parameterized PpapiThread to support the broker process.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6813071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/ppapi_plugin/ppapi_broker_main.cc')
-rw-r--r--content/ppapi_plugin/ppapi_broker_main.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/content/ppapi_plugin/ppapi_broker_main.cc b/content/ppapi_plugin/ppapi_broker_main.cc
index edaaa10..7b63f56 100644
--- a/content/ppapi_plugin/ppapi_broker_main.cc
+++ b/content/ppapi_plugin/ppapi_broker_main.cc
@@ -14,15 +14,14 @@
int PpapiBrokerMain(const MainFunctionParams& parameters) {
const CommandLine& command_line = parameters.command_line_;
if (command_line.HasSwitch(switches::kPpapiStartupDialog)) {
- ChildProcess::WaitForDebugger("Ppapi");
+ ChildProcess::WaitForDebugger("PpapiBroker");
}
MessageLoop main_message_loop(MessageLoop::TYPE_DEFAULT);
base::PlatformThread::SetName("CrPPAPIBrokerMain");
ChildProcess ppapi_broker_process;
- //TODO:(ddorwin): Parameterize PpapiThread so the broker can reuse it.
- ppapi_broker_process.set_main_thread(new PpapiThread());
+ ppapi_broker_process.set_main_thread(new PpapiThread(true)); // Broker.
main_message_loop.Run();
return 0;