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

Unified Diff: ui/aura_shell/shell.cc

Issue 8387043: [Aura] Support always-on-top top level window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and update comment per ben Created 9 years, 1 month 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
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/shell.cc
diff --git a/ui/aura_shell/shell.cc b/ui/aura_shell/shell.cc
index c16b63cd4313cb1206a4b0ff5d710de427a78229..dc40423beb690ee3840f3c19588454a8548f6f58 100644
--- a/ui/aura_shell/shell.cc
+++ b/ui/aura_shell/shell.cc
@@ -92,6 +92,9 @@ Shell::Shell(ShellDelegate* delegate)
}
Shell::~Shell() {
+ DCHECK(instance_ == this);
+ instance_ = NULL;
+
// Make sure we delete WorkspaceController before launcher is
// deleted as it has a reference to launcher model.
workspace_controller_.reset();
@@ -130,6 +133,11 @@ void Shell::Init() {
(*i)->Show();
}
+ internal::StackingController* stacking_controller =
+ static_cast<internal::StackingController*>(
+ desktop_window->stacking_client());
+ stacking_controller->Init();
+
internal::DesktopLayoutManager* desktop_layout =
new internal::DesktopLayoutManager(desktop_window);
desktop_window->SetLayoutManager(desktop_layout);
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698