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

Unified Diff: base/trace_event.cc

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/trace_event.h ('k') | chrome/app/result_codes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event.cc
===================================================================
--- base/trace_event.cc (revision 5371)
+++ base/trace_event.cc (working copy)
@@ -26,8 +26,8 @@
FILE_PATH_LITERAL("trace_%d.log");
TraceLog::TraceLog() : enabled_(false), log_file_(NULL) {
- ProcessHandle proc = process_util::GetCurrentProcessHandle();
- process_metrics_.reset(process_util::ProcessMetrics::CreateProcessMetrics(proc));
+ base::ProcessHandle proc = base::GetCurrentProcessHandle();
+ process_metrics_.reset(base::ProcessMetrics::CreateProcessMetrics(proc));
}
TraceLog::~TraceLog() {
@@ -86,7 +86,7 @@
bool TraceLog::OpenLogFile() {
FilePath::StringType pid_filename =
- StringPrintf(kLogFileName, process_util::GetCurrentProcId());
+ StringPrintf(kLogFileName, base::GetCurrentProcId());
FilePath log_file_path;
if (!PathService::Get(base::DIR_EXE, &log_file_path))
return false;
@@ -133,7 +133,7 @@
StringPrintf("{'pid':'0x%lx', 'tid':'0x%lx', 'type':'%s', "
"'name':'%s', 'id':'0x%lx', 'extra':'%s', 'file':'%s', "
"'line_number':'%d', 'usec_begin': %I64d},\r\n",
- process_util::GetCurrentProcId(),
+ base::GetCurrentProcId(),
PlatformThread::CurrentId(),
kEventTypeNames[type],
name.c_str(),
« no previous file with comments | « base/trace_event.h ('k') | chrome/app/result_codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698