summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/plugin_main.cc
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 18:17:55 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 18:17:55 +0000
commit42f1d782153f79b0b43bcb17db7dc4979bc08814 (patch)
treea5f08a5eda55157626abccd96b0b1ff177882370 /chrome/plugin/plugin_main.cc
parentafc9075980bba8f1427b788692f45921ecf14b67 (diff)
downloadchromium_src-42f1d782153f79b0b43bcb17db7dc4979bc08814.zip
chromium_src-42f1d782153f79b0b43bcb17db7dc4979bc08814.tar.gz
chromium_src-42f1d782153f79b0b43bcb17db7dc4979bc08814.tar.bz2
Unrevert 21355 because the revert might be causing the
worker tests failures. Review URL: http://codereview.chromium.org/159276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/plugin_main.cc')
-rw-r--r--chrome/plugin/plugin_main.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc
index 7361d64..63d295d 100644
--- a/chrome/plugin/plugin_main.cc
+++ b/chrome/plugin/plugin_main.cc
@@ -29,8 +29,8 @@
// main() routine for running as the plugin process.
int PluginMain(const MainFunctionParams& parameters) {
- // The main thread of the plugin services IO.
- MessageLoopForIO main_message_loop;
+ // The main thread of the plugin services UI.
+ MessageLoop main_message_loop(MessageLoop::TYPE_UI);
std::wstring app_name = chrome::kBrowserAppName;
PlatformThread::SetName(WideToASCII(app_name + L"_PluginMain").c_str());
@@ -80,7 +80,8 @@ int PluginMain(const MainFunctionParams& parameters) {
}
{
- ChildProcess plugin_process(new PluginThread());
+ ChildProcess plugin_process;
+ plugin_process.set_main_thread(new PluginThread());
#if defined(OS_WIN)
if (!no_sandbox && target_services)
target_services->LowerToken();