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

Unified Diff: chrome/browser/signin/easy_unlock_service_regular.cc

Issue 2921803002: [EasyUnlock] Force a device sync after turning off the feature. (Closed)
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/easy_unlock_service_regular.cc
diff --git a/chrome/browser/signin/easy_unlock_service_regular.cc b/chrome/browser/signin/easy_unlock_service_regular.cc
index 496a8b9c9fa51917f8e9185ee65312b8aab6ca65..93c3620dc5ea5eac5aadde6557a93fbe202a199f 100644
--- a/chrome/browser/signin/easy_unlock_service_regular.cc
+++ b/chrome/browser/signin/easy_unlock_service_regular.cc
@@ -588,6 +588,9 @@ void EasyUnlockServiceRegular::OnToggleEasyUnlockApiComplete(
const cryptauth::ToggleEasyUnlockResponse& response) {
cryptauth_client_.reset();
+ GetCryptAuthDeviceManager()->ForceSyncNow(
+ cryptauth::InvocationReason::INVOCATION_REASON_FEATURE_TOGGLED);
+ EasyUnlockService::ResetLocalStateForUser(GetAccountId());
SetRemoteDevices(base::ListValue());
SetTurnOffFlowStatus(IDLE);
ReloadAppAndLockScreen();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698