Commit e9179a4f authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

Fix UserCloudPolicyTokenForwardTest failure caught by asan

Asan bots caught a unit test failure after 00722f1e
which is fixed by making sure the ProfileManager outlasts
the UserCloudPolicyManagerChromeOS

Bug: none
Change-Id: I5d3aef4dcc7e423bfdf1742469c8789b4edfd0d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872573Reviewed-by: default avatarDenis Kuznetsov <antrim@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708322}
parent 69e083e4
......@@ -115,6 +115,8 @@ class UserCloudPolicyTokenForwarderTest : public testing::Test {
void TearDown() override {
user_policy_manager_->core()->Disconnect();
// Must be torn down before |profile_manager_|.
user_policy_manager_.reset();
chromeos::DBusThreadManager::Shutdown();
}
......
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