Commit 68f5a2e3 authored by Mohammed Abdon's avatar Mohammed Abdon Committed by Commit Bot

fixing destructor in InSessionPasswordChangeManager

Removing session activation observer for account id in case they exist

Bug: NA
Change-Id: Iac08d08f2b0dab1cc6eda922267c902b036822a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082925Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Commit-Queue: Mohammed Abdon <mohammedabdon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746718}
parent 9643e79c
...@@ -204,7 +204,7 @@ InSessionPasswordChangeManager::~InSessionPasswordChangeManager() { ...@@ -204,7 +204,7 @@ InSessionPasswordChangeManager::~InSessionPasswordChangeManager() {
// Remove |this| as a SessionActivationObserver. // Remove |this| as a SessionActivationObserver.
auto* session_controller = ash::SessionController::Get(); auto* session_controller = ash::SessionController::Get();
if (session_controller) { if (session_controller) {
session_controller->AddSessionActivationObserverForAccountId( session_controller->RemoveSessionActivationObserverForAccountId(
primary_user_->GetAccountId(), this); primary_user_->GetAccountId(), this);
} }
} }
......
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