| 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/base_paths.h" | 5 #include "base/base_paths.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 #if defined(OS_CHROMEOS) | 104 #if defined(OS_CHROMEOS) |
| 105 // Specifies $HOME explicitly because some plugins rely on $HOME but | 105 // Specifies $HOME explicitly because some plugins rely on $HOME but |
| 106 // no other part of Chrome OS uses that. See crbug.com/335290. | 106 // no other part of Chrome OS uses that. See crbug.com/335290. |
| 107 base::FilePath homedir; | 107 base::FilePath homedir; |
| 108 PathService::Get(base::DIR_HOME, &homedir); | 108 PathService::Get(base::DIR_HOME, &homedir); |
| 109 setenv("HOME", homedir.value().c_str(), 1); | 109 setenv("HOME", homedir.value().c_str(), 1); |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 base::MessageLoop main_message_loop; | 112 base::MessageLoop main_message_loop; |
| 113 base::PlatformThread::SetName("CrPPAPIMain"); | 113 base::PlatformThread::SetName("CrPPAPIMain"); |
| 114 base::debug::TraceLog::GetInstance()->SetProcessName("PPAPI Process"); | 114 base::trace_event::TraceLog::GetInstance()->SetProcessName("PPAPI Process"); |
| 115 base::debug::TraceLog::GetInstance()->SetProcessSortIndex( | 115 base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex( |
| 116 kTraceEventPpapiProcessSortIndex); | 116 kTraceEventPpapiProcessSortIndex); |
| 117 | 117 |
| 118 #if defined(OS_LINUX) && defined(USE_NSS) | 118 #if defined(OS_LINUX) && defined(USE_NSS) |
| 119 // Some out-of-process PPAPI plugins use NSS. | 119 // Some out-of-process PPAPI plugins use NSS. |
| 120 // NSS must be initialized before enabling the sandbox below. | 120 // NSS must be initialized before enabling the sandbox below. |
| 121 crypto::InitNSSSafely(); | 121 crypto::InitNSSSafely(); |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 // Allow the embedder to perform any necessary per-process initialization | 124 // Allow the embedder to perform any necessary per-process initialization |
| 125 // before the sandbox is initialized. | 125 // before the sandbox is initialized. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 136 | 136 |
| 137 #if defined(OS_WIN) | 137 #if defined(OS_WIN) |
| 138 SkTypeface_SetEnsureLOGFONTAccessibleProc(SkiaPreCacheFont); | 138 SkTypeface_SetEnsureLOGFONTAccessibleProc(SkiaPreCacheFont); |
| 139 #endif | 139 #endif |
| 140 | 140 |
| 141 main_message_loop.Run(); | 141 main_message_loop.Run(); |
| 142 return 0; | 142 return 0; |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace content | 145 } // namespace content |
| OLD | NEW |