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

Unified Diff: chrome/browser/android/shortcut_helper.cc

Issue 2676863002: Update WebApkInstaller to support badge icon in installation. (Closed)
Patch Set: Rebase Created 3 years, 9 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/shortcut_helper.cc
diff --git a/chrome/browser/android/shortcut_helper.cc b/chrome/browser/android/shortcut_helper.cc
index 9a0674f440f3f56984eeeaf7f5f7eb87eb239df3..736a431735eb323817e4f7a7eb8004f1a493f87f 100644
--- a/chrome/browser/android/shortcut_helper.cc
+++ b/chrome/browser/android/shortcut_helper.cc
@@ -157,10 +157,11 @@ void ShortcutHelper::AddToLauncherWithSkBitmap(
void ShortcutHelper::InstallWebApkWithSkBitmap(
content::WebContents* web_contents,
const ShortcutInfo& info,
- const SkBitmap& icon_bitmap,
+ const SkBitmap& primary_icon_bitmap,
+ const SkBitmap& badge_icon_bitmap,
const WebApkInstallService::FinishCallback& callback) {
WebApkInstallService::Get(web_contents->GetBrowserContext())
- ->InstallAsync(info, icon_bitmap, callback);
+ ->InstallAsync(info, primary_icon_bitmap, badge_icon_bitmap, callback);
// Don't record metric for users who install WebAPKs via "unsigned sources"
// flow.
if (ChromeWebApkHost::GetGooglePlayInstallState() ==

Powered by Google App Engine
This is Rietveld 408576698