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

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

Issue 1082123003: Rename USE_NSS to USE_NSS_CERTS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-nss-certs
Patch Set: rebase Created 5 years, 8 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
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/zygote/zygote_main_linux.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) 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::trace_event::TraceLog::GetInstance()->SetProcessName("PPAPI Process"); 114 base::trace_event::TraceLog::GetInstance()->SetProcessName("PPAPI Process");
115 base::trace_event::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_CERTS)
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.
126 if (GetContentClient()->plugin()) 126 if (GetContentClient()->plugin())
127 GetContentClient()->plugin()->PreSandboxInitialization(); 127 GetContentClient()->plugin()->PreSandboxInitialization();
128 128
129 #if defined(OS_LINUX) 129 #if defined(OS_LINUX)
130 LinuxSandbox::InitializeSandbox(); 130 LinuxSandbox::InitializeSandbox();
131 #endif 131 #endif
132 132
133 ChildProcess ppapi_process; 133 ChildProcess ppapi_process;
134 ppapi_process.set_main_thread( 134 ppapi_process.set_main_thread(
135 new PpapiThread(parameters.command_line, false)); // Not a broker. 135 new PpapiThread(parameters.command_line, false)); // Not a broker.
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
OLDNEW
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698