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

Unified Diff: chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc

Issue 2228273002: Run ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap() on Worker thread instead of IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_builder_impl2_thread 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
Index: chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
diff --git a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
index 4a95a2c505f38046d09db5974d6d1004f95884e9..465ec4c7f6cb5f07ab1a9758f20b8c083657c170 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
+++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
@@ -121,11 +121,9 @@ void AddToHomescreenDialogHelper::AddShortcut(const ShortcutInfo& info,
RecordAddToHomescreen();
const std::string& uid = base::GenerateGUID();
- content::BrowserThread::PostTask(
- content::BrowserThread::IO, FROM_HERE,
- base::Bind(&ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap,
- web_contents->GetBrowserContext(), info, uid, icon,
- data_fetcher_->FetchSplashScreenImageCallback(uid)));
+ ShortcutHelper::AddToLauncherWithSkBitmap(
+ web_contents->GetBrowserContext(), info, uid, icon,
+ data_fetcher_->FetchSplashScreenImageCallback(uid));
}
bool AddToHomescreenDialogHelper::RegisterAddToHomescreenDialogHelper(

Powered by Google App Engine
This is Rietveld 408576698