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

Unified Diff: ui/app_list/app_list_item_list.cc

Issue 592983002: Fix Mac App Launcher observer lifetime on AppListItemList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leave disabled due to other flakiness 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 | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_item_list.cc
diff --git a/ui/app_list/app_list_item_list.cc b/ui/app_list/app_list_item_list.cc
index c8d96e2aec1a7c35ffd54ebf6079fbdd45f21b98..e7c935081d1322b6f6391c5f4bf8ea069c68505b 100644
--- a/ui/app_list/app_list_item_list.cc
+++ b/ui/app_list/app_list_item_list.cc
@@ -19,6 +19,7 @@ void AppListItemList::AddObserver(AppListItemListObserver* observer) {
}
void AppListItemList::RemoveObserver(AppListItemListObserver* observer) {
+ DCHECK(observers_.HasObserver(observer));
observers_.RemoveObserver(observer);
}
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698