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

Unified Diff: mash/quick_launch/quick_launch.cc

Issue 2691363004: chromeos: Makes ~QuickLaunch delete widgets (Closed)
Patch Set: newline Created 3 years, 10 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: mash/quick_launch/quick_launch.cc
diff --git a/mash/quick_launch/quick_launch.cc b/mash/quick_launch/quick_launch.cc
index 246e933c5ac5e0322f361d670e7e057d6793c0fb..827ec3ad94faba4514f94ba4b19387c1ad3fee8f 100644
--- a/mash/quick_launch/quick_launch.cc
+++ b/mash/quick_launch/quick_launch.cc
@@ -154,7 +154,11 @@ class QuickLaunchUI : public views::WidgetDelegateView,
QuickLaunch::QuickLaunch() {
registry_.AddInterface<::mash::mojom::Launchable>(this);
}
-QuickLaunch::~QuickLaunch() {}
+
+QuickLaunch::~QuickLaunch() {
+ while (!windows_.empty())
+ windows_.front()->CloseNow();
+}
void QuickLaunch::RemoveWindow(views::Widget* window) {
auto it = std::find(windows_.begin(), windows_.end(), 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