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

Unified Diff: components/cryptauth/remote_device.h

Issue 2859053003: [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: [EasyUnlock] Add beacon_seeds to RemoteDevice. Created 3 years, 7 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 | components/cryptauth/remote_device.cc » ('j') | components/cryptauth/remote_device.cc » ('J')
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 b3f2b51eb18be35a8b220c863c74ad217a38b035..e12206a2cdc5ae59ad06989d035ea1768d2acf9e 100644
--- a/components/cryptauth/remote_device.h
+++ b/components/cryptauth/remote_device.h
@@ -8,6 +8,8 @@
#include <string>
#include <vector>
+#include "components/cryptauth/proto/cryptauth_api.pb.h"
+
namespace cryptauth {
struct RemoteDevice {
Kyle Horimoto 2017/05/04 03:52:51 Please store a boolean (maybe call it has_fetched_
Tim Song 2017/05/06 22:53:16 I think this is problematic because this struct is
Ryan Hansberry 2017/05/09 02:32:19 Re: "Anyone can change the beacon_seeds but forget
Tim Song 2017/05/10 21:58:08 The biggest problem still is that it's not really
Ryan Hansberry 2017/05/15 15:43:34 I'm inclined to agree that operator== isn't really
@@ -19,6 +21,10 @@ struct RemoteDevice {
std::string persistent_symmetric_key;
std::string sign_in_challenge;
+ // Note: To save space, the BeaconSeeds may not necessarily be included in
+ // this object.
+ std::vector<BeaconSeed> beacon_seeds;
+
RemoteDevice();
RemoteDevice(const std::string& user_id,
const std::string& name,
« no previous file with comments | « no previous file | components/cryptauth/remote_device.cc » ('j') | components/cryptauth/remote_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698