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

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

Issue 554213003: Request the icon of a Web Notification in the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes now redundant code Created 6 years, 3 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/message_center_notification_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/desktop_notification_service.cc
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index c53742b75fb2f626fc4704d57af2862bf9b577f7..399772e79ca1b2e95d422ea2569129c702b22118 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -157,9 +157,15 @@ void DesktopNotificationService::ShowDesktopNotification(
base::string16 display_source = DisplayNameForOriginInProcessId(
origin, render_frame_host->GetProcess()->GetID());
- Notification notification(origin, params.icon_url, params.title,
- params.body, params.direction, display_source, params.replace_id,
- proxy);
+
+ Notification notification(origin,
+ gfx::Image::CreateFrom1xBitmap(params.icon),
dewittj 2014/09/17 16:36:20 I think that today, this will work for 1x and 2x d
Jun Mukai 2014/09/17 16:57:47 Using CreateFrom1xBitmap is not bad by itself, it
Peter Beverloo 2014/09/18 16:54:37 I agree that it would be good for the Notification
+ params.title,
+ params.body,
+ params.direction,
+ display_source,
+ params.replace_id,
+ proxy);
// The webkit notification doesn't timeout.
notification.set_never_timeout(true);
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698