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

Unified Diff: tools/battor_agent/battor_agent.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/md5sum/md5sum.cc ('k') | tools/battor_agent/battor_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_agent.h
diff --git a/tools/battor_agent/battor_agent.h b/tools/battor_agent/battor_agent.h
index 524b5a8991e9c2ec29094fe098b77aec0c1cfe0f..3c6c77d170e1eabeb90e68feb871b8654fe7a8cb 100644
--- a/tools/battor_agent/battor_agent.h
+++ b/tools/battor_agent/battor_agent.h
@@ -65,13 +65,13 @@ class BattOrAgent : public BattOrConnection::Listener,
void OnBytesSent(bool success) override;
void OnMessageRead(bool success,
BattOrMessageType type,
- scoped_ptr<std::vector<char>> bytes) override;
+ std::unique_ptr<std::vector<char>> bytes) override;
protected:
// The connection that knows how to communicate with the BattOr in terms of
// protocol primitives. This is protected so that it can be replaced with a
// fake in testing.
- scoped_ptr<BattOrConnection> connection_;
+ std::unique_ptr<BattOrConnection> connection_;
// Timeout for when an action isn't completed within the allotted time. This
// is virtual and protected so that timeouts can be disabled in testing. The
@@ -161,7 +161,7 @@ class BattOrAgent : public BattOrConnection::Listener,
base::ThreadChecker thread_checker_;
// The BattOr's EEPROM (which is required for calibration).
- scoped_ptr<BattOrEEPROM> battor_eeprom_;
+ std::unique_ptr<BattOrEEPROM> battor_eeprom_;
// The first frame (required for calibration).
std::vector<RawBattOrSample> calibration_frame_;
« no previous file with comments | « tools/android/md5sum/md5sum.cc ('k') | tools/battor_agent/battor_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698