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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc

Issue 2863533003: [EasyUnlock] Serialize and store BeaconSeeds along as cryptohome key metadata. (Closed)
Patch Set: [EasyUnlock] Serialize and store BeaconSeeds along as cryptohome key metadata. 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
Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
index 1fc777f4afbd305434106a82227339e38f55ef66..aeae6d7d741afb84ff8c75e9ce3dccfd61e8160f 100644
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
@@ -125,6 +125,11 @@ void EasyUnlockGetKeysOperation::OnGetKeyData(
device.wrapped_secret = *entry.bytes;
else
NOTREACHED();
+ } else if (entry.name == kEasyUnlockKeyMetaNameSerializedBeaconSeeds) {
+ if (entry.bytes)
+ device.serialized_beacon_seeds = *entry.bytes;
+ else
+ NOTREACHED();
} else {
PA_LOG(WARNING) << "Unknown Easy unlock key data entry, name="
Ryan Hansberry 2017/05/09 02:44:08 super nit: Not part of this CL but can you fix thi
Tim Song 2017/05/10 18:23:26 Done.
<< entry.name;

Powered by Google App Engine
This is Rietveld 408576698