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

Unified Diff: chrome/browser/android/webapk/webapk_installer.cc

Issue 2921623004: Support badge icon in WebAPK update components (Closed)
Patch Set: rebase Created 3 years, 6 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/webapk/webapk_installer.cc
diff --git a/chrome/browser/android/webapk/webapk_installer.cc b/chrome/browser/android/webapk/webapk_installer.cc
index 9ff8e5b89a0a832bb648117e31338840f652ffd9..4653099a01a9cdbc6cb0a74086b3ef9512648cf1 100644
--- a/chrome/browser/android/webapk/webapk_installer.cc
+++ b/chrome/browser/android/webapk/webapk_installer.cc
@@ -209,6 +209,7 @@ void WebApkInstaller::UpdateAsync(
content::BrowserContext* context,
const ShortcutInfo& shortcut_info,
const SkBitmap& primary_icon,
+ const SkBitmap& badge_icon,
const std::string& webapk_package,
int webapk_version,
const std::map<std::string, std::string>& icon_url_to_murmur2_hash,
@@ -216,7 +217,7 @@ void WebApkInstaller::UpdateAsync(
const FinishCallback& finish_callback) {
// The installer will delete itself when it is done.
WebApkInstaller* installer = new WebApkInstaller(
- context, shortcut_info, primary_icon, SkBitmap());
+ context, shortcut_info, primary_icon, badge_icon);
installer->UpdateAsync(webapk_package, webapk_version,
icon_url_to_murmur2_hash, is_manifest_stale,
finish_callback);
« no previous file with comments | « chrome/browser/android/webapk/webapk_installer.h ('k') | chrome/browser/android/webapk/webapk_installer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698