Chromium Code Reviews| Index: chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc |
| diff --git a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc |
| index 14af509dfc363e161714cdf888f8cdf04ad7d694..4bbd2f152c903cf4155cb6f2895601b989ca6615 100644 |
| --- a/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc |
| +++ b/chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc |
| @@ -119,7 +119,7 @@ void ArcAppDeferredLauncherController::Close(const std::string& app_id) { |
| app_controller_map_.erase(it); |
| if (need_close_item) |
| owner_->CloseLauncherItem(shelf_id); |
| - owner_->OnAppUpdated(owner_->profile(), shelf_app_id); |
| + UpdateApp(shelf_app_id); |
| } |
| void ArcAppDeferredLauncherController::OnAppReadyChanged( |
| @@ -170,13 +170,19 @@ base::TimeDelta ArcAppDeferredLauncherController::GetActiveTime( |
| return it->second->GetActiveTime(); |
| } |
| +void ArcAppDeferredLauncherController::UpdateApp(const std::string& app_id) { |
| + AppIconLoader* acon_loader = owner_->GetAppIconLoaderForApp(app_id); |
|
Devlin
2017/04/26 22:41:57
typo: s/acon/icon
khmel
2017/04/27 00:18:12
Done.
|
| + if (acon_loader) |
| + acon_loader->UpdateImage(app_id); |
| +} |
| + |
| void ArcAppDeferredLauncherController::UpdateApps() { |
| if (app_controller_map_.empty()) |
| return; |
| RegisterNextUpdate(); |
| for (const auto pair : app_controller_map_) |
| - owner_->OnAppUpdated(owner_->profile(), pair.first); |
| + UpdateApp(pair.first); |
| } |
| void ArcAppDeferredLauncherController::RegisterNextUpdate() { |