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:

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) {
|
bool IsCrostiniRunning(Profile* profile) {
|
||||||
return crostini::CrostiniManager::GetForProfile(profile)->IsVmRunning(
|
auto* manager = crostini::CrostiniManager::GetForProfile(profile);
|
||||||
kCrostiniDefaultVmName);
|
return manager && manager->IsVmRunning(kCrostiniDefaultVmName);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShouldConfigureDefaultContainer(Profile* profile) {
|
bool ShouldConfigureDefaultContainer(Profile* profile) {
|
||||||
|
Reference in New Issue
Block a user