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

Side by Side Diff: tools/battor_agent/battor_agent_bin.cc

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, change iwyu fixes for converted directories to include <memory> Created 4 years, 8 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 | « tools/battor_agent/battor_agent.cc ('k') | tools/battor_agent/battor_agent_unittest.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This file provides a thin binary wrapper around the BattOr Agent 5 // This file provides a thin binary wrapper around the BattOr Agent
6 // library. This binary wrapper provides a means for non-C++ tracing 6 // library. This binary wrapper provides a means for non-C++ tracing
7 // controllers, such as Telemetry and Android Systrace, to issue high-level 7 // controllers, such as Telemetry and Android Systrace, to issue high-level
8 // tracing commands to the BattOr through an interactive shell. 8 // tracing commands to the BattOr through an interactive shell.
9 // 9 //
10 // Example usage of how an external trace controller might use this binary: 10 // Example usage of how an external trace controller might use this binary:
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 private: 288 private:
289 // Event signaled when an async task has finished executing. 289 // Event signaled when an async task has finished executing.
290 base::WaitableEvent done_; 290 base::WaitableEvent done_;
291 291
292 // Threads needed for serial communication. 292 // Threads needed for serial communication.
293 base::Thread io_thread_; 293 base::Thread io_thread_;
294 base::Thread file_thread_; 294 base::Thread file_thread_;
295 base::Thread ui_thread_; 295 base::Thread ui_thread_;
296 296
297 // The agent capable of asynchronously communicating with the BattOr. 297 // The agent capable of asynchronously communicating with the BattOr.
298 scoped_ptr<BattOrAgent> agent_; 298 std::unique_ptr<BattOrAgent> agent_;
299 299
300 std::string trace_output_file_; 300 std::string trace_output_file_;
301 301
302 }; 302 };
303 303
304 } // namespace battor 304 } // namespace battor
305 305
306 int main(int argc, char* argv[]) { 306 int main(int argc, char* argv[]) {
307 base::AtExitManager exit_manager; 307 base::AtExitManager exit_manager;
308 base::CommandLine::Init(argc, argv); 308 base::CommandLine::Init(argc, argv);
309 battor::BattOrAgentBin bin; 309 battor::BattOrAgentBin bin;
310 return bin.Run(argc, argv); 310 return bin.Run(argc, argv);
311 } 311 }
OLDNEW
« no previous file with comments | « tools/battor_agent/battor_agent.cc ('k') | tools/battor_agent/battor_agent_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698