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

Unified Diff: chrome/browser/notifications/arc_application_notifier_source_chromeos.cc

Issue 2865813002: 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
Index: chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
diff --git a/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc b/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
index c9236d142e23a85b82299f909788b615f6d9e96d..feeb0a0be9c19f29a012037ea389832fc7504121 100644
--- a/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
+++ b/chrome/browser/notifications/arc_application_notifier_source_chromeos.cc
@@ -61,10 +61,12 @@ ArcApplicationNotifierSourceChromeOS::GetNotifierList(Profile* profile) {
kArcAppIconSizeInDp,
// The life time of icon must shorter than |this|.
this));
- icon->LoadForScaleFactor(
+ icon->image_skia().GetRepresentation(
ui::GetSupportedScaleFactor(display::Screen::GetScreen()
->GetPrimaryDisplay()
.device_scale_factor()));
+ // Apply icon now to set the default image.
+ OnIconUpdated(icon.get());
// Add notifiers.
package_to_app_ids_.insert(std::make_pair(app->package_name, app_id));

Powered by Google App Engine
This is Rietveld 408576698