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

Unified Diff: chrome/browser/banners/app_banner_manager.cc

Issue 2676863002: Update WebApkInstaller to support badge icon in installation. (Closed)
Patch Set: Addressing comments 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/banners/app_banner_manager.cc
diff --git a/chrome/browser/banners/app_banner_manager.cc b/chrome/browser/banners/app_banner_manager.cc
index 726f25f9b08860ac1725368595806c6207059fe0..6000d8f5ff27953e6628a788e11953022e6b741a 100644
--- a/chrome/browser/banners/app_banner_manager.cc
+++ b/chrome/browser/banners/app_banner_manager.cc
@@ -266,7 +266,7 @@ void AppBannerManager::OnDidPerformInstallableCheck(
DCHECK(data.primary_icon);
primary_icon_url_ = data.primary_icon_url;
- primary_icon_.reset(new SkBitmap(*data.primary_icon));
+ primary_icon_ = *data.primary_icon;
SendBannerPromptRequest();
}
@@ -515,7 +515,7 @@ void AppBannerManager::OnBannerPromptReply(
DCHECK(!manifest_url_.is_empty());
DCHECK(!manifest_.IsEmpty());
DCHECK(!primary_icon_url_.is_empty());
- DCHECK(primary_icon_.get());
+ DCHECK(!primary_icon_.drawsNothing());
TrackBeforeInstallEvent(BEFORE_INSTALL_EVENT_COMPLETE);
ShowBanner();
« chrome/browser/banners/app_banner_manager.h ('K') | « chrome/browser/banners/app_banner_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698