diff --git a/chrome/browser/ui/web_applications/app_browser_controller.cc b/chrome/browser/ui/web_applications/app_browser_controller.cc index c32c5a24a523c..032d03eebf79d 100644 --- a/chrome/browser/ui/web_applications/app_browser_controller.cc +++ b/chrome/browser/ui/web_applications/app_browser_controller.cc @@ -286,7 +286,11 @@ AppBrowserController::~AppBrowserController() { bool AppBrowserController::ShouldShowCustomTabBar() const { if (!IsInstalled()) { - return false; + // Fail safe: the Custom Tab Bar is the only persistent origin indicator + // for omnibox-less TYPE_APP windows. If the registrar entry is gone (e.g. + // a beforeunload-cancelled close after uninstall left this window alive), + // we cannot evaluate scope, so always surface the origin to the user. + return true; } content::WebContents* web_contents =