Index: chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc |
diff --git a/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc |
index 618397c9e069eac5416cbb34c08db1e6f3c3d668..e8c4b1fb38e252e5837502fb7fbcd35443186c0b 100644 |
--- a/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc |
+++ b/chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc |
@@ -135,9 +135,9 @@ void ShellWindowLauncherController::OnWindowDestroying(aura::Window* window) { |
// If this is the last window associated with the app launcher id, close the |
// launcher item. |
ash::LauncherID launcher_id = controller->launcher_id(); |
+ // |owner_| destroys |controller|. |
owner_->CloseLauncherItem(launcher_id); |
app_controller_map_.erase(iter2); |
- delete controller; |
} |
} |