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

Unified Diff: tools/android/forwarder2/host_controller.h

Issue 2366763003: [Android] Add device serial to all host_controller log messages. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | tools/android/forwarder2/host_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/host_controller.h
diff --git a/tools/android/forwarder2/host_controller.h b/tools/android/forwarder2/host_controller.h
index 20241d35ba8e3bf65d7bbcce37cf3230da5f9f3c..e6a25e1e42678117e25eeb0cc2b649ac37c63159 100644
--- a/tools/android/forwarder2/host_controller.h
+++ b/tools/android/forwarder2/host_controller.h
@@ -39,6 +39,7 @@ class HostController {
// If |device_port| is zero then a dynamic port is allocated (and retrievable
// through device_port() below).
static std::unique_ptr<HostController> Create(
+ const std::string& device_serial,
int device_port,
int host_port,
int adb_port,
@@ -55,7 +56,8 @@ class HostController {
int device_port() const { return device_port_; }
private:
- HostController(int device_port,
+ HostController(const std::string& device_serial,
+ int device_port,
int host_port,
int adb_port,
const ErrorCallback& error_callback,
@@ -73,6 +75,7 @@ class HostController {
void UnmapPortOnDevice();
SelfDeleterHelper<HostController> self_deleter_helper_;
+ const std::string device_serial_;
const int device_port_;
const int host_port_;
const int adb_port_;
« no previous file with comments | « no previous file | tools/android/forwarder2/host_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698