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

Unified Diff: ui/app_list/app_list_view_delegate_observer.h

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_model.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_view_delegate_observer.h
diff --git a/ui/app_list/app_list_view_delegate_observer.h b/ui/app_list/app_list_view_delegate_observer.h
index a612334e69e75b864fbb8c69e9ed5381009165a4..abc4fe4a42bfb0d86675160b0e658c415f1d9545 100644
--- a/ui/app_list/app_list_view_delegate_observer.h
+++ b/ui/app_list/app_list_view_delegate_observer.h
@@ -15,6 +15,11 @@ class APP_LIST_EXPORT AppListViewDelegateObserver {
// profile changes its signin status.
virtual void OnProfilesChanged() = 0;
+ // Invoked on Chrome shutdown. This is only needed on Mac, since reference-
+ // counting in Objective-C means that simply closing the window isn't enough
+ // to guarantee references to Chrome objects are gone.
+ virtual void OnShutdown() = 0;
+
protected:
virtual ~AppListViewDelegateObserver() {}
};
« no previous file with comments | « ui/app_list/app_list_model.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698