Commit e2cf7f50 authored by Ryan Hansberry's avatar Ryan Hansberry Committed by Commit Bot

Smart Lock: Use DeviceSyncClient when displaying 'pairing change' notification

This codepath was using the deprecated CryptAuthDeviceManager, which causes
crashes on M71+.

R=jhawkins@chromium.org

Bug: 908579
Change-Id: I52bd659b43cb851caa696fb77bcf0536396ba214
Reviewed-on: https://chromium-review.googlesource.com/c/1351877Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Ryan Hansberry <hansberry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611392}
parent 39de18db
...@@ -743,13 +743,10 @@ void EasyUnlockServiceRegular::OnScreenDidUnlock( ...@@ -743,13 +743,10 @@ void EasyUnlockServiceRegular::OnScreenDidUnlock(
if (shown_pairing_changed_notification_) { if (shown_pairing_changed_notification_) {
shown_pairing_changed_notification_ = false; shown_pairing_changed_notification_ = false;
std::vector<cryptauth::ExternalDeviceInfo> unlock_keys =
GetCryptAuthDeviceManager()->GetUnlockKeys(); if (!GetUnlockKeys().empty()) {
if (!unlock_keys.empty()) {
// TODO(tengs): Right now, we assume that there is only one possible
// unlock key. We need to update this notification be more generic.
notification_controller_->ShowPairingChangeAppliedNotification( notification_controller_->ShowPairingChangeAppliedNotification(
unlock_keys[0].friendly_device_name()); GetUnlockKeys()[0].name());
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment