Index: chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc |
index 588878edd161d06605a97a11d1b0c779a11798ef..e0f10c835ff7e6dc057f5f2f4464376d8581ca89 100644 |
--- a/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc |
@@ -45,8 +45,7 @@ ShellWindowLauncherItemController::~ShellWindowLauncherItemController() { |
void ShellWindowLauncherItemController::AddShellWindow( |
ShellWindow* shell_window, |
ash::LauncherItemStatus status) { |
- if (shell_window->window_type() == ShellWindow::WINDOW_TYPE_PANEL && |
- type() != TYPE_APP_PANEL) { |
+ if (shell_window->window_type_panel() && type() != TYPE_APP_PANEL) { |
LOG(ERROR) << "ShellWindow of type Panel added to non-panel launcher item"; |
} |
if (status == ash::STATUS_ACTIVE) |