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

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

Issue 2276553002: arc: Open launcher after installing app from Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix browser_tests Created 4 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
« no previous file with comments | « ui/app_list/views/app_list_main_view.h ('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/app_list_main_view.cc
diff --git a/ui/app_list/views/app_list_main_view.cc b/ui/app_list/views/app_list_main_view.cc
index 9ca1860ac60ddabc29c433e85ac46e4c4c1907e6..d1cc5e7b828692078006312c4e94b8f4db512900 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -68,7 +68,12 @@ class AppListMainView::IconLoader : public AppListItemObserver {
private:
// AppListItemObserver overrides:
void ItemIconChanged() override {
- owner_->OnItemIconLoaded(this);
+ owner_->OnIconLoaderFinished(this);
+ // Note that IconLoader is released here.
+ }
+
+ void ItemBeingDestroyed() override {
+ owner_->OnIconLoaderFinished(this);
// Note that IconLoader is released here.
}
@@ -221,7 +226,7 @@ void AppListMainView::OnIconLoadingWaitTimer() {
GetWidget()->Show();
}
-void AppListMainView::OnItemIconLoaded(IconLoader* loader) {
+void AppListMainView::OnIconLoaderFinished(IconLoader* loader) {
ScopedVector<IconLoader>::iterator it = std::find(
pending_icon_loaders_.begin(), pending_icon_loaders_.end(), loader);
DCHECK(it != pending_icon_loaders_.end());
« no previous file with comments | « ui/app_list/views/app_list_main_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698