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

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: review 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
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..2ba9f227a658252adc31ac30a14eff02ce83f204 100644
--- a/components/arc/intent_helper/link_handler_model_impl.cc
+++ b/components/arc/intent_helper/link_handler_model_impl.cc
@@ -115,9 +115,11 @@ 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 =
+ (result != ActivityIconLoader::GetResult::SUCCEEDED_ASYNC);
Luis Héctor Chávez 2016/06/02 16:59:47 Isn't the intention "result == ActivityIconLoader:
Yusuke Sato 2016/06/02 18:03:19 GetResult::FAILED_* also run the callback actually
Luis Héctor Chávez 2016/06/02 20:03:51 Makes more sense now :) nit: Can you add a small
Yusuke Sato 2016/06/02 21:07:27 Great idea, done.
}
if (!icon_info_notified) {

Powered by Google App Engine
This is Rietveld 408576698