Commit 9eb40e3f authored by Fergus Dall's avatar Fergus Dall Committed by Commit Bot

Show a dialogue when we fail to load cros-termina

Currently we do this if we know we're not online and we need a major
update, but if we fail after that check nothing is displayed to the
user. This could happen if, for example, their network connection was
dropped during the update. Change this to show the same dialogue on
any install failure, since we expect most failures to be caused by
network issues.

Change-Id: I55541ceb3674cceb406fe357cb78b19ab29933e0
Bug: 990227
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743440Reviewed-by: default avatarNicholas Verne <nverne@chromium.org>
Commit-Queue: Fergus Dall <sidereal@google.com>
Cr-Commit-Position: refs/heads/master@{#685419}
parent 8861028d
......@@ -86,7 +86,8 @@ void OnCrostiniRestarted(Profile* profile,
OnLaunchFailed(app_id);
if (browser && browser->window())
browser->window()->Close();
if (result == crostini::CrostiniResult::OFFLINE_WHEN_UPGRADE_REQUIRED) {
if (result == crostini::CrostiniResult::OFFLINE_WHEN_UPGRADE_REQUIRED ||
result == crostini::CrostiniResult::LOAD_COMPONENT_FAILED) {
ShowCrostiniUpgradeView(profile, crostini::CrostiniUISurface::kAppList);
}
return;
......
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