Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3002)

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc

Issue 10825240: Refactor ShellWindow to separate platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index f65025435a82f5a8b4f24f33fdb765236dfa5f3a..9ffaeed4dd2d1da158b8d4648e29542b373ca6e8 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -653,7 +653,7 @@ void ChromeLauncherController::Observe(
}
void ChromeLauncherController::OnShellWindowAdded(ShellWindow* shell_window) {
- aura::Window* window = shell_window->GetNativeWindow();
+ aura::Window* window = shell_window->GetBaseWindow()->GetNativeWindow();
ash::LauncherItemStatus status = ash::wm::IsActiveWindow(window) ?
ash::STATUS_ACTIVE : ash::STATUS_RUNNING;
window->AddObserver(this);
@@ -713,7 +713,8 @@ void ChromeLauncherController::OnWindowRemovingFromRootWindow(
// We can't count on getting called before or after the ShellWindowRegistry.
if (remaining_windows.size() > 1 ||
(remaining_windows.size() == 1 &&
- (*remaining_windows.begin())->GetNativeWindow() != window)) {
+ (*remaining_windows.begin())->GetBaseWindow()->GetNativeWindow() !=
+ window)) {
return;
}
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.cc ('k') | chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698