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

Unified Diff: components/cryptauth/remote_device.h

Issue 2570383002: CryptAuth: Add GetId() and a GetTruncatedIdForLogs() functions to RemoteDevice. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/cryptauth/remote_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/remote_device.h
diff --git a/components/cryptauth/remote_device.h b/components/cryptauth/remote_device.h
index a484a2a62d7921b6aaaacc021c7939fffc645012..369bc7f64b6c2612655c7471ab559704361c3c59 100644
--- a/components/cryptauth/remote_device.h
+++ b/components/cryptauth/remote_device.h
@@ -32,6 +32,14 @@ struct RemoteDevice {
std::string sign_in_challenge);
RemoteDevice(const RemoteDevice& other);
~RemoteDevice();
+
+ // Returns a unique ID for the device.
+ std::string GetDeviceId();
+
+ // Returns a shortened device ID for the purpose of concise logging (device
+ // IDs are often so long that logs are difficult to read). Note that this
+ // ID is not guaranteed to be unique, so it should only be used for log.
+ std::string GetTruncatedDeviceIdForLogs();
};
typedef std::vector<RemoteDevice> RemoteDeviceList;
« no previous file with comments | « no previous file | components/cryptauth/remote_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698