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

Unified Diff: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.cc

Issue 2864243006: [Merge M59] arc: Prevent overwriting of the Chrome Play Store icon. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | chrome/browser/notifications/arc_application_notifier_source_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.cc
diff --git a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.cc b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.cc
index fd2c314b3c3e6573dac2b2d6d09f3b0d448763bc..ee2b2a90d097e7e0d11f0daf0ae543fb1b7874c2 100644
--- a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.cc
+++ b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service.cc
@@ -174,9 +174,11 @@ void ArcKioskAppService::RequestNameAndIconUpdate() {
return;
app_icon_ = base::MakeUnique<ArcAppIcon>(profile_, app_id_,
app_list::kGridIconDimension, this);
- app_icon_->LoadForScaleFactor(ui::GetSupportedScaleFactor(
+ app_icon_->image_skia().GetRepresentation(ui::GetSupportedScaleFactor(
display::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor()));
- // Name and icon are updated when icon is loaded in OnIconUpdated()
+ // Apply default image now and in case icon is updated then OnIconUpdated()
+ // will be called additionally.
+ OnIconUpdated(app_icon_.get());
}
void ArcKioskAppService::PreconditionsChanged() {
« no previous file with comments | « no previous file | chrome/browser/notifications/arc_application_notifier_source_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698