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

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

Issue 2676863002: Update WebApkInstaller to support badge icon in installation. (Closed)
Patch Set: addressing comments Created 3 years, 8 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/shortcut_helper.h ('k') | chrome/browser/android/webapk/webapk_install_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/shortcut_helper.cc
diff --git a/chrome/browser/android/shortcut_helper.cc b/chrome/browser/android/shortcut_helper.cc
index 4016277de0a41de2ae53d49e887243e3c3e0e982..72b389a6b885c456ebc1dd460d04d42c360f5ffc 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);
webapk::TrackGooglePlayInstallState(GooglePlayInstallState::SUPPORTED);
}
« no previous file with comments | « chrome/browser/android/shortcut_helper.h ('k') | chrome/browser/android/webapk/webapk_install_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698