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

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

Issue 892213004: Mechanical rename of base::debug -> base::trace_event for /content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3_1
Patch Set: Rebase. Created 5 years, 10 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/ppapi_plugin/ppapi_broker_main.cc ('k') | content/public/browser/tracing_controller.h » ('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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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/ppapi_plugin/ppapi_broker_main.cc ('k') | content/public/browser/tracing_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698