Index: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
index 0ef6011d817174399c4f0dd0e54a1ab232695d9a..2f47003249d4cd50fcbfb916aa17a5da77334f30 100644 |
--- a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc |
@@ -8,7 +8,6 @@ |
#include <vector> |
#include "ash/resources/grit/ash_resources.h" |
-#include "ash/shelf/shelf_delegate.h" |
#include "ash/shelf/shelf_model.h" |
#include "ash/shell.h" |
#include "ash/wm/window_properties.h" |
@@ -361,9 +360,9 @@ bool BrowserShortcutLauncherItemController::IsBrowserRepresentedInBrowserList( |
return false; |
// v1 App popup windows with a valid app id have their own icon. |
- ash::ShelfDelegate* delegate = ash::Shell::Get()->shelf_delegate(); |
- if (browser->is_app() && browser->is_type_popup() && delegate && |
- delegate->GetShelfIDForAppID(web_app::GetExtensionIdFromApplicationName( |
+ ash::ShelfModel* model = ash::Shell::Get()->shelf_model(); |
+ if (browser->is_app() && browser->is_type_popup() && |
+ model->GetShelfIDForAppID(web_app::GetExtensionIdFromApplicationName( |
browser->app_name())) > 0) { |
return false; |
} |