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

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: 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 709b6ef595f9d95d8651a340c63cb7abd1ce7490..997b3f1c8476b5f322ad51d4b4d0d4300114c012 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
+++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
@@ -127,11 +127,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