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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.cc

Issue 102473005: Refresh for the Chrome notifications image template. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac unit test Created 7 years 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/renderer/resources/extensions/notifications_custom_bindings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/notifications/notifications_api.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc
index 27c862e9a4cbb5d4b612a0edafb01fa571106888..b9d97d2f31ebb8a308f6f8e8e6577586135e9cd4 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -55,9 +55,8 @@ bool NotificationBitmapToGfxImage(
return false;
// Ensure a sane set of dimensions.
- const int max_width = message_center::kNotificationPreferredImageSize;
- const int max_height =
- message_center::kNotificationPreferredImageRatio * max_width;
+ const int max_width = message_center::kNotificationPreferredImageWidth;
+ const int max_height = message_center::kNotificationPreferredImageHeight;
const int BYTES_PER_PIXEL = 4;
const int width = notification_bitmap->width;
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/notifications_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698