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

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: comments 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..5a4da257e176f90214a3269fc00612745dd8006e 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,8 +125,13 @@ 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="
+ PA_LOG(WARNING) << "Unknown EasyUnlock key data entry, name="
<< entry.name;
}
}

Powered by Google App Engine
This is Rietveld 408576698