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

Side by Side Diff: trunk/src/content/browser/tracing/trace_controller_impl.cc

Issue 89753004: Revert 237280 "Remove TraceController" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | Annotate | Revision Log
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/tracing/trace_controller_impl.h" 5 #include "content/browser/tracing/trace_controller_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // The last ack represents local trace, so we need to ack it now. Note that 362 // The last ack represents local trace, so we need to ack it now. Note that
363 // this code only executes if there were child processes. 363 // this code only executes if there were child processes.
364 float bpf = TraceLog::GetInstance()->GetBufferPercentFull(); 364 float bpf = TraceLog::GetInstance()->GetBufferPercentFull();
365 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 365 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
366 base::Bind(&TraceControllerImpl::OnTraceBufferPercentFullReply, 366 base::Bind(&TraceControllerImpl::OnTraceBufferPercentFullReply,
367 base::Unretained(this), bpf)); 367 base::Unretained(this), bpf));
368 } 368 }
369 } 369 }
370 370
371 } // namespace content 371 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/tracing/trace_controller_impl.h ('k') | trunk/src/content/browser/tracing/trace_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698