0

Fix Terminal menu crash in guest mode

Bug: 1335373
Change-Id: I050e87217108ce33b9e1ad2cab60de1e3f994b2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3697742
Auto-Submit: Joel Hockey <joelhockey@chromium.org>
Commit-Queue: Timothy Loh <timloh@chromium.org>
Reviewed-by: Timothy Loh <timloh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1013730}
This commit is contained in:
Joel Hockey
2022-06-14 00:00:50 +00:00
committed by Chromium LUCI CQ
parent 76a4260eb1
commit a39f011d31

@ -248,8 +248,8 @@ bool IsUninstallable(Profile* profile, const std::string& app_id) {
}
bool IsCrostiniRunning(Profile* profile) {
return crostini::CrostiniManager::GetForProfile(profile)->IsVmRunning(
kCrostiniDefaultVmName);
auto* manager = crostini::CrostiniManager::GetForProfile(profile);
return manager && manager->IsVmRunning(kCrostiniDefaultVmName);
}
bool ShouldConfigureDefaultContainer(Profile* profile) {