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

Side by Side Diff: content/browser/browser_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
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 "content/browser/browser_main.h" 5 #include "content/browser/browser_main.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "content/common/content_constants_internal.h" 8 #include "content/common/content_constants_internal.h"
9 #include "content/public/browser/browser_main_runner.h" 9 #include "content/public/browser/browser_main_runner.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // Main routine for running as the Browser process. 13 // Main routine for running as the Browser process.
14 int BrowserMain(const MainFunctionParams& parameters) { 14 int BrowserMain(const MainFunctionParams& parameters) {
15 TRACE_EVENT_BEGIN_ETW("BrowserMain", 0, ""); 15 TRACE_EVENT_BEGIN_ETW("BrowserMain", 0, "");
16 base::debug::TraceLog::GetInstance()->SetProcessName("Browser"); 16 base::trace_event::TraceLog::GetInstance()->SetProcessName("Browser");
17 base::debug::TraceLog::GetInstance()->SetProcessSortIndex( 17 base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex(
18 kTraceEventBrowserProcessSortIndex); 18 kTraceEventBrowserProcessSortIndex);
19 19
20 scoped_ptr<BrowserMainRunner> main_runner(BrowserMainRunner::Create()); 20 scoped_ptr<BrowserMainRunner> main_runner(BrowserMainRunner::Create());
21 21
22 int exit_code = main_runner->Initialize(parameters); 22 int exit_code = main_runner->Initialize(parameters);
23 if (exit_code >= 0) 23 if (exit_code >= 0)
24 return exit_code; 24 return exit_code;
25 25
26 exit_code = main_runner->Run(); 26 exit_code = main_runner->Run();
27 27
28 main_runner->Shutdown(); 28 main_runner->Shutdown();
29 29
30 TRACE_EVENT_END_ETW("BrowserMain", 0, 0); 30 TRACE_EVENT_END_ETW("BrowserMain", 0, 0);
31 31
32 return exit_code; 32 return exit_code;
33 } 33 }
34 34
35 } // namespace content 35 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/tracing_controller_android.cc ('k') | content/browser/browser_main_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698