| Index: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
|
| diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
|
| index cc11a59bf46ac648cdff950cea631d3c6649dc15..8e0a4e4b982502332f82999a01ef739a3a2d4a69 100644
|
| --- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
|
| +++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
|
| @@ -220,7 +220,7 @@ void AddToHomescreenDataFetcher::OnDidPerformInstallableCheck(
|
| weak_observer_->OnUserTitleAvailable(shortcut_info_.user_title);
|
|
|
| if (data.primary_icon) {
|
| - shortcut_info_.best_icon_url = data.primary_icon_url;
|
| + shortcut_info_.best_primary_icon_url = data.primary_icon_url;
|
|
|
| CreateLauncherIcon(*(data.primary_icon));
|
| return;
|
| @@ -276,19 +276,17 @@ void AddToHomescreenDataFetcher::CreateLauncherIconFromFaviconInBackground(
|
| bitmap_result.bitmap_data->size(), &raw_icon);
|
| }
|
|
|
| - shortcut_info_.best_icon_url = bitmap_result.icon_url;
|
| + shortcut_info_.best_primary_icon_url = bitmap_result.icon_url;
|
| CreateLauncherIconInBackground(raw_icon);
|
| }
|
|
|
| void AddToHomescreenDataFetcher::CreateLauncherIcon(const SkBitmap& raw_icon) {
|
| - DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| - content::BrowserThread::GetBlockingPool()
|
| - ->PostWorkerTaskWithShutdownBehavior(
|
| - FROM_HERE,
|
| - base::Bind(
|
| - &AddToHomescreenDataFetcher::CreateLauncherIconInBackground,
|
| - this, raw_icon),
|
| - base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| + content::BrowserThread::GetBlockingPool()->PostWorkerTaskWithShutdownBehavior(
|
| + FROM_HERE,
|
| + base::Bind(&AddToHomescreenDataFetcher::CreateLauncherIconInBackground,
|
| + this, raw_icon),
|
| + base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
|
| }
|
|
|
| void AddToHomescreenDataFetcher::CreateLauncherIconInBackground(
|
| @@ -303,7 +301,7 @@ void AddToHomescreenDataFetcher::CreateLauncherIconInBackground(
|
| }
|
|
|
| if (is_generated)
|
| - shortcut_info_.best_icon_url = GURL();
|
| + shortcut_info_.best_primary_icon_url = GURL();
|
|
|
| content::BrowserThread::PostTask(
|
| content::BrowserThread::UI, FROM_HERE,
|
|
|