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

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

Issue 2671853002: Rename best icon to best primary icon in Web app related code. (Closed)
Patch Set: Removing java changes Created 3 years, 10 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 | « chrome/browser/android/webapk/webapk_update_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4ad906bb684d8a6198f5660f005199b28a49928e..9f7d15a17e826f26d1652abdf2fe11a084ccc7b7 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
+++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
@@ -240,7 +240,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;
@@ -296,19 +296,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(
@@ -323,7 +321,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,
« no previous file with comments | « chrome/browser/android/webapk/webapk_update_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698