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

Unified Diff: ui/app_list/cocoa/app_list_view_controller.mm

Issue 593563002: For Mac, add AppListViewDelegateObserver::OnShutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl format, nits Created 6 years, 3 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 | « ui/app_list/app_list_view_delegate_observer.h ('k') | ui/app_list/views/app_list_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/cocoa/app_list_view_controller.mm
diff --git a/ui/app_list/cocoa/app_list_view_controller.mm b/ui/app_list/cocoa/app_list_view_controller.mm
index 0ca22f46a0885c5e517d6f144bd30208edd8497f..b831f9a916126523f805e2c750350cf504261d53 100644
--- a/ui/app_list/cocoa/app_list_view_controller.mm
+++ b/ui/app_list/cocoa/app_list_view_controller.mm
@@ -88,6 +88,7 @@ class AppListModelObserverBridge : public AppListViewDelegateObserver {
private:
// Overridden from app_list::AppListViewDelegateObserver:
virtual void OnProfilesChanged() OVERRIDE;
+ virtual void OnShutdown() OVERRIDE;
AppListViewController* parent_; // Weak. Owns us.
@@ -108,6 +109,10 @@ void AppListModelObserverBridge::OnProfilesChanged() {
[parent_ onProfilesChanged];
}
+void AppListModelObserverBridge::OnShutdown() {
+ [parent_ setDelegate:nil];
+}
+
} // namespace app_list
@implementation AppListViewController
« no previous file with comments | « ui/app_list/app_list_view_delegate_observer.h ('k') | ui/app_list/views/app_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698