Commit 3ca236b4 authored by Eric Willigers's avatar Eric Willigers Committed by Commit Bot

desktop-pwas: controller calls IsShortcutApp

The AppRegistrar method IsShortcutApp was recently added.

WebAppBrowserController::CreatedForInstalledPwa() now calls
IsShortcutApp().

Bug: 966290
Change-Id: Ic081748fccf4570b92f1abf00d1e2dbd3ae68c68
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818000
Commit-Queue: Alan Cutter <alancutter@chromium.org>
Auto-Submit: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699140}
parent f98dd011
......@@ -29,8 +29,7 @@ base::Optional<AppId> WebAppBrowserController::GetAppId() const {
}
bool WebAppBrowserController::CreatedForInstalledPwa() const {
// TODO(crbug.com/915038): Implement and use WebApp::IsShortcut().
return registrar().GetAppScope(app_id_).has_value();
return !registrar().IsShortcutApp(app_id_);
}
bool WebAppBrowserController::IsHostedApp() const {
......
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