Commit 96dd7ef2 authored by Leo Lai's avatar Leo Lai Committed by Commit Bot

Reland "removed unnecessary defderred PrepareTpmDeviceAndFinalizeProfile"

This is a reland of 23c810e8

Original change's description:
> removed unnecessary defderred PrepareTpmDeviceAndFinalizeProfile
>
> According to the current program flow, this to-be-removed branch seems a
> useless special handling.
>
> This CL might affect how UserSessionManager utilitzes tpm manager client
> in the near future.
>
> BUG=b:172748724
> TEST=unittests.
>
> Change-Id: I93f05a45409878db1138c8d49d835f1d7f0c427e
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2525471
> Reviewed-by: Roman Sorokin [CET] <rsorokin@chromium.org>
> Commit-Queue: Leo Lai <cylai@google.com>
> Cr-Commit-Position: refs/heads/master@{#826319}

Bug: b:172748724
Change-Id: Idfb9d74d574e4b2c0510abe87d6d6269960c627c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2534554Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Reviewed-by: default avatarAchuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Leo Lai <cylai@google.com>
Cr-Commit-Position: refs/heads/master@{#827155}
parent f3cd8bda
......@@ -1522,16 +1522,6 @@ void UserSessionManager::UserProfileInitialized(Profile* profile,
return;
}
if (user_context_.GetAuthFlow() == UserContext::AUTH_FLOW_ACTIVE_DIRECTORY) {
// Call FinalizePrepareProfile directly and skip RestoreAuthSessionImpl
// because there is no need to merge session for Active Directory users.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::BindOnce(&UserSessionManager::PrepareTpmDeviceAndFinalizeProfile,
AsWeakPtr(), profile));
return;
}
PrepareTpmDeviceAndFinalizeProfile(profile);
}
......
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