Commit e4af0fd5 authored by Joel Hockey's avatar Joel Hockey Committed by Chromium LUCI CQ

Keep crostini terminal in search after uninstall

Bug: 1098615
Change-Id: Ia0ac1e49eb8255b762211a13d1158395d05dca06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2576233
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
Auto-Submit: Joel Hockey <joelhockey@chromium.org>
Reviewed-by: default avatarNancy Wang <nancylingwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834493}
parent 76bc29ba
...@@ -241,13 +241,13 @@ void CrostiniApps::OnCrostiniEnabledChanged() { ...@@ -241,13 +241,13 @@ void CrostiniApps::OnCrostiniEnabledChanged() {
: apps::mojom::OptionalBool::kFalse; : apps::mojom::OptionalBool::kFalse;
// The Crostini Terminal app is a hard-coded special case. It is the entry // The Crostini Terminal app is a hard-coded special case. It is the entry
// point to installing other Crostini apps. // point to installing other Crostini apps, and is always in search.
apps::mojom::AppPtr app = apps::mojom::App::New(); apps::mojom::AppPtr app = apps::mojom::App::New();
app->app_type = apps::mojom::AppType::kCrostini; app->app_type = apps::mojom::AppType::kCrostini;
app->app_id = crostini::kCrostiniTerminalSystemAppId; app->app_id = crostini::kCrostiniTerminalSystemAppId;
app->show_in_launcher = show; app->show_in_launcher = show;
app->show_in_shelf = show; app->show_in_shelf = show;
app->show_in_search = show; app->show_in_search = apps::mojom::OptionalBool::kTrue;
Publish(std::move(app), subscribers_); Publish(std::move(app), subscribers_);
} }
......
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