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

Unified Diff: components/proximity_auth/remote_device.cc

Issue 1356943004: Add RemoteDeviceLoader to create RemoteDevice from CryptAuth data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webui
Patch Set: move RemoteDevice creation in tests to util function Created 5 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
Index: components/proximity_auth/remote_device.cc
diff --git a/components/proximity_auth/remote_device.cc b/components/proximity_auth/remote_device.cc
index 378c2dfbd389563ce6fe159f83a0f71adb0d294a..925dce437a64db31fe970e02dd7111c7fee954fe 100644
--- a/components/proximity_auth/remote_device.cc
+++ b/components/proximity_auth/remote_device.cc
@@ -8,14 +8,20 @@ namespace proximity_auth {
RemoteDevice::RemoteDevice() {}
-RemoteDevice::RemoteDevice(const std::string& name,
+RemoteDevice::RemoteDevice(const std::string& user_id,
+ const std::string& name,
const std::string& public_key,
+ BluetoothType bluetooth_type,
const std::string& bluetooth_address,
- const std::string& persistent_symmetric_key)
- : name(name),
+ const std::string& persistent_symmetric_key,
+ std::string sign_in_challenge)
+ : user_id(user_id),
+ name(name),
public_key(public_key),
+ bluetooth_type(bluetooth_type),
bluetooth_address(bluetooth_address),
- persistent_symmetric_key(persistent_symmetric_key) {}
+ persistent_symmetric_key(persistent_symmetric_key),
+ sign_in_challenge(sign_in_challenge) {}
RemoteDevice::~RemoteDevice() {}
« no previous file with comments | « components/proximity_auth/remote_device.h ('k') | components/proximity_auth/remote_device_life_cycle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698