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..2ea2d9f61490131c00f00776f3ed04880be5aa3e 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_is_panel() && type() != TYPE_APP_PANEL) { |
LOG(ERROR) << "ShellWindow of type Panel added to non-panel launcher item"; |
} |
if (status == ash::STATUS_ACTIVE) |