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

Unified Diff: chrome/plugin/plugin_main.cc

Issue 155876: Revert r21117 as it caused reliability failures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | « chrome/common/ipc_channel_proxy.cc ('k') | chrome/plugin/plugin_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/plugin_main.cc
===================================================================
--- chrome/plugin/plugin_main.cc (revision 21215)
+++ chrome/plugin/plugin_main.cc (working copy)
@@ -29,8 +29,8 @@
// main() routine for running as the plugin process.
int PluginMain(const MainFunctionParams& parameters) {
- // The main thread of the plugin services UI.
- MessageLoop main_message_loop(MessageLoop::TYPE_UI);
+ // The main thread of the plugin services IO.
+ MessageLoopForIO main_message_loop;
std::wstring app_name = chrome::kBrowserAppName;
PlatformThread::SetName(WideToASCII(app_name + L"_PluginMain").c_str());
@@ -80,8 +80,7 @@
}
{
- ChildProcess plugin_process;
- plugin_process.set_main_thread(new PluginThread());
+ ChildProcess plugin_process(new PluginThread());
#if defined(OS_WIN)
if (!no_sandbox && target_services)
target_services->LowerToken();
« no previous file with comments | « chrome/common/ipc_channel_proxy.cc ('k') | chrome/plugin/plugin_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698