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

Unified Diff: chrome/browser/ui/app_list/app_list_service_impl.h

Issue 492163002: Fix Profile* lifetime issues in Chrome's AppListViewDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update unit test, cl format Created 6 years, 4 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
Index: chrome/browser/ui/app_list/app_list_service_impl.h
diff --git a/chrome/browser/ui/app_list/app_list_service_impl.h b/chrome/browser/ui/app_list/app_list_service_impl.h
index 6fe68aec17630916bfde82251a5120c1da7f5b56..4102ee3edf2fcaae8c34e1b855c30a5d7b6c9e37 100644
--- a/chrome/browser/ui/app_list/app_list_service_impl.h
+++ b/chrome/browser/ui/app_list/app_list_service_impl.h
@@ -53,6 +53,10 @@ class AppListServiceImpl : public AppListService,
protected:
AppListServiceImpl();
+ // Destroy the app list. Called when the profile that the app list is showing
+ // is being deleted.
+ virtual void DestroyAppList() = 0;
+
void InvalidatePendingProfileLoads();
ProfileLoader& profile_loader() { return *profile_loader_; }
const ProfileLoader& profile_loader() const { return *profile_loader_; }

Powered by Google App Engine
This is Rietveld 408576698