| Index: chrome/browser/ui/app_list/extension_app_item.cc
|
| diff --git a/chrome/browser/ui/app_list/extension_app_item.cc b/chrome/browser/ui/app_list/extension_app_item.cc
|
| index 9ecbdab008de4f9fd29fc5593541833d05a388ca..d92648df84434b5c47deaee7b9e88585f73b8ab1 100644
|
| --- a/chrome/browser/ui/app_list/extension_app_item.cc
|
| +++ b/chrome/browser/ui/app_list/extension_app_item.cc
|
| @@ -145,22 +145,21 @@ ExtensionAppItem::~ExtensionAppItem() {
|
| }
|
|
|
| bool ExtensionAppItem::NeedsOverlay() const {
|
| - // The overlay icon is disabled for hosted apps in windowed mode with
|
| - // streamlined hosted apps.
|
| - bool streamlined_hosted_apps =
|
| - extensions::util::IsStreamlinedHostedAppsEnabled();
|
| #if defined(OS_CHROMEOS)
|
| - if (!streamlined_hosted_apps)
|
| - return false;
|
| + // The overlay is disabled completely in ChromeOS.
|
| + return false;
|
| #endif
|
| +
|
| extensions::LaunchType launch_type =
|
| GetExtension()
|
| ? extensions::GetLaunchType(extensions::ExtensionPrefs::Get(profile_),
|
| GetExtension())
|
| : extensions::LAUNCH_TYPE_WINDOW;
|
|
|
| + // The overlay icon is disabled for hosted apps in windowed mode with
|
| + // streamlined hosted apps.
|
| return !is_platform_app_ && extension_id_ != extension_misc::kChromeAppId &&
|
| - (!streamlined_hosted_apps ||
|
| + (!extensions::util::IsStreamlinedHostedAppsEnabled() ||
|
| launch_type != extensions::LAUNCH_TYPE_WINDOW);
|
| }
|
|
|
|
|