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

Issue 1372163002: Scale large notification icons according to device settings. (Closed)

Created:
5 years, 2 months ago by Peter Beverloo
Modified:
5 years, 2 months ago
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scale large notification icons according to device settings. Previously we would directly pass developer-provided icons on to the Android NotificationManager, but this has led to OOM errors on devices with less memory when developers provide, supposedly, large icons. Starting from this CL, we ensure that icons are at most the size at which they will be presented to the user. TBR=mvanouwerkerk (reviewed in CL 1362943002) BUG=529980 Committed: https://crrev.com/1e5de1b0d2ba982a3be66b1f19d6a815c5fd462f Cr-Commit-Position: refs/heads/master@{#351111}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -42 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java View 1 7 chunks +52 lines, -37 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java View 4 chunks +58 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Peter Beverloo
TBR=mvanouwerkerk This is identical to https://codereview.chromium.org/1362943002/ with two asserts on image size removed in the ...
5 years, 2 months ago (2015-09-28 17:31:58 UTC) #2
Miguel Garcia
lgtm % nits https://codereview.chromium.org/1372163002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java (right): https://codereview.chromium.org/1372163002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java:97: * Returns the current instance of ...
5 years, 2 months ago (2015-09-28 17:47:13 UTC) #6
Peter Beverloo
Thank you! https://codereview.chromium.org/1372163002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java (right): https://codereview.chromium.org/1372163002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java:97: * Returns the current instance of the ...
5 years, 2 months ago (2015-09-28 18:03:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372163002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372163002/20001
5 years, 2 months ago (2015-09-28 18:07:38 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-09-28 19:29:25 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 19:31:06 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1e5de1b0d2ba982a3be66b1f19d6a815c5fd462f
Cr-Commit-Position: refs/heads/master@{#351111}

Powered by Google App Engine
This is Rietveld 408576698