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

Side by Side Diff: chrome/ppapi_plugin/ppapi_plugin_main.cc

Issue 6001010: Move platform_thread to base/threading and put in the base namespace. I left ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/plugin_main.cc ('k') | chrome/profile_import/profile_import_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/threading/platform_thread.h"
6 #include "build/build_config.h" 7 #include "build/build_config.h"
7 #include "chrome/common/child_process.h" 8 #include "chrome/common/child_process.h"
8 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/main_function_params.h" 10 #include "chrome/common/main_function_params.h"
10 #include "chrome/ppapi_plugin/ppapi_thread.h" 11 #include "chrome/ppapi_plugin/ppapi_thread.h"
11 12
12 // Main function for starting the PPAPI plugin process. 13 // Main function for starting the PPAPI plugin process.
13 int PpapiPluginMain(const MainFunctionParams& parameters) { 14 int PpapiPluginMain(const MainFunctionParams& parameters) {
14 const CommandLine& command_line = parameters.command_line_; 15 const CommandLine& command_line = parameters.command_line_;
15 if (command_line.HasSwitch(switches::kPpapiStartupDialog)) { 16 if (command_line.HasSwitch(switches::kPpapiStartupDialog)) {
16 ChildProcess::WaitForDebugger(L"Ppapi"); 17 ChildProcess::WaitForDebugger(L"Ppapi");
17 } 18 }
18 19
19 MessageLoop main_message_loop(MessageLoop::TYPE_UI); 20 MessageLoop main_message_loop(MessageLoop::TYPE_UI);
20 PlatformThread::SetName("CrPPAPIMain"); 21 base::PlatformThread::SetName("CrPPAPIMain");
21 22
22 ChildProcess ppapi_process; 23 ChildProcess ppapi_process;
23 ppapi_process.set_main_thread(new PpapiThread()); 24 ppapi_process.set_main_thread(new PpapiThread());
24 25
25 main_message_loop.Run(); 26 main_message_loop.Run();
26 return 0; 27 return 0;
27 } 28 }
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_main.cc ('k') | chrome/profile_import/profile_import_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698