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

Unified Diff: ui/aura_shell/launcher/launcher.cc

Issue 8417002: Makes Launcher remove itself as an observer from any windows it's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/launcher/launcher.cc
diff --git a/ui/aura_shell/launcher/launcher.cc b/ui/aura_shell/launcher/launcher.cc
index 4792c8d4a935b6fd0a757bc5d8b8765775d83c51..845965605c252379a6b667b586cc266232d39038 100644
--- a/ui/aura_shell/launcher/launcher.cc
+++ b/ui/aura_shell/launcher/launcher.cc
@@ -43,6 +43,10 @@ Launcher::Launcher(aura::ToplevelWindowContainer* window_container)
Launcher::~Launcher() {
window_container_->RemoveObserver(this);
+ for (WindowMap::iterator i = known_windows_.begin();
+ i != known_windows_.end(); ++i) {
+ i->first->RemoveObserver(this);
+ }
}
void Launcher::MaybeAdd(aura::Window* window) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698