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

Unified Diff: components/arc/intent_helper/link_handler_model_impl.cc

Issue 2034543003: Retry icon fetching after intent_helper is ready (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 7 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 | « components/arc/intent_helper/activity_icon_loader_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/intent_helper/link_handler_model_impl.cc
diff --git a/components/arc/intent_helper/link_handler_model_impl.cc b/components/arc/intent_helper/link_handler_model_impl.cc
index 4f9896795f62eec016c4598542810ac6be64af79..6a78118ec6e2634d47de10506a35438659102bcb 100644
--- a/components/arc/intent_helper/link_handler_model_impl.cc
+++ b/components/arc/intent_helper/link_handler_model_impl.cc
@@ -115,9 +115,10 @@ void LinkHandlerModelImpl::OnUrlHandlerList(
activities.emplace_back(handlers_[i]->package_name,
handlers_[i]->activity_name);
}
- icon_info_notified = icon_loader_->GetActivityIcons(
+ const ActivityIconLoader::GetResult result = icon_loader_->GetActivityIcons(
activities, base::Bind(&LinkHandlerModelImpl::NotifyObserver,
weak_ptr_factory_.GetWeakPtr()));
+ icon_info_notified = ActivityIconLoader::HasIconsReadyCallbackRun(result);
}
if (!icon_info_notified) {
« no previous file with comments | « components/arc/intent_helper/activity_icon_loader_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698