OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/debug/debugger.h" | 6 #include "base/debug/debugger.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/common/child_process.h" | 10 #include "content/common/child_process.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 MessageLoop main_message_loop; | 48 MessageLoop main_message_loop; |
49 base::PlatformThread::SetName("CrPPAPIMain"); | 49 base::PlatformThread::SetName("CrPPAPIMain"); |
50 | 50 |
51 #if defined(OS_LINUX) | 51 #if defined(OS_LINUX) |
52 content::InitializeSandbox(); | 52 content::InitializeSandbox(); |
53 #endif | 53 #endif |
54 | 54 |
55 ChildProcess ppapi_process; | 55 ChildProcess ppapi_process; |
56 ppapi_process.set_main_thread(new PpapiThread(false)); // Not a broker. | 56 ppapi_process.set_main_thread( |
57 | 57 new PpapiThread(parameters.command_line, false)); // Not a broker. |
58 ppapi::proxy::ProxyModule::GetInstance()->SetFlashCommandLineArgs( | |
59 command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs)); | |
60 | 58 |
61 main_message_loop.Run(); | 59 main_message_loop.Run(); |
62 return 0; | 60 return 0; |
63 } | 61 } |
OLD | NEW |