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

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

Issue 2655213004: Avoid retaining a reference to ActivityIconLoader in its OnIconReady() (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/intent_helper/activity_icon_loader.cc
diff --git a/components/arc/intent_helper/activity_icon_loader.cc b/components/arc/intent_helper/activity_icon_loader.cc
index d83b6a1da1bca4c3641d31da24959ae96be20d1b..b4f0c097f8011301d314c1b038de195a80ab17aa 100644
--- a/components/arc/intent_helper/activity_icon_loader.cc
+++ b/components/arc/intent_helper/activity_icon_loader.cc
@@ -163,8 +163,8 @@ void ActivityIconLoader::OnIconsReady(
ArcServiceManager* manager = ArcServiceManager::Get();
base::PostTaskAndReplyWithResult(
manager->blocking_task_runner().get(), FROM_HERE,
- base::Bind(&ActivityIconLoader::ResizeAndEncodeIcons, this,
- base::Passed(&icons)),
+ base::Bind(&ActivityIconLoader::ResizeAndEncodeIcons,
hidehiko 2017/01/26 13:14:20 (I know it is not your mistake, but ...) ResizeAn
tzik 2017/01/26 13:21:12 Done.
+ base::Unretained(this), base::Passed(&icons)),
base::Bind(&ActivityIconLoader::OnIconsResized, this,
base::Passed(&cached_result), cb));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698