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

Side by Side Diff: base/test/trace_to_file.cc

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « base/scoped_observer.h ('k') | base/third_party/nspr/BUILD.gn » ('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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/test/trace_to_file.h" 5 #include "base/test/trace_to_file.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h"
8 #include "base/command_line.h" 9 #include "base/command_line.h"
9 #include "base/debug/trace_event_impl.h" 10 #include "base/debug/trace_event_impl.h"
10 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
11 #include "base/run_loop.h" 12 #include "base/run_loop.h"
12 13
13 namespace base { 14 namespace base {
14 namespace test { 15 namespace test {
15 16
16 TraceToFile::TraceToFile() : started_(false) { 17 TraceToFile::TraceToFile() : started_(false) {
17 } 18 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 RunLoop run_loop; 96 RunLoop run_loop;
96 debug::TraceLog::GetInstance()->Flush( 97 debug::TraceLog::GetInstance()->Flush(
97 Bind(&OnTraceDataCollected, run_loop.QuitClosure(), Unretained(&buffer))); 98 Bind(&OnTraceDataCollected, run_loop.QuitClosure(), Unretained(&buffer)));
98 run_loop.Run(); 99 run_loop.Run();
99 100
100 AppendFileFooter(); 101 AppendFileFooter();
101 } 102 }
102 103
103 } // namespace test 104 } // namespace test
104 } // namespace base 105 } // namespace base
OLDNEW
« no previous file with comments | « base/scoped_observer.h ('k') | base/third_party/nspr/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698