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

Unified Diff: ui/app_list/views/apps_grid_view.cc

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More revisions, remove unneeded function Created 5 years, 9 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_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/apps_grid_view.cc
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
index 1c6f193c818044c20a7ee611d1e161df32919942..9d8a3feafe46ce7e83cd5bcc8f66b307d8caf5d2 100644
--- a/ui/app_list/views/apps_grid_view.cc
+++ b/ui/app_list/views/apps_grid_view.cc
@@ -1623,7 +1623,9 @@ void AppsGridView::EndDragForReparentInHiddenFolderGridView() {
void AppsGridView::OnFolderItemRemoved() {
DCHECK(folder_delegate_);
- item_list_ = NULL;
+ if (item_list_)
+ item_list_->RemoveObserver(this);
+ item_list_ = nullptr;
}
void AppsGridView::StartDragAndDropHostDrag(const gfx::Point& grid_location) {
« no previous file with comments | « ui/app_list/app_list_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698