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

Issue 1362943002: 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. BUG=529980 Committed: https://crrev.com/c409a15aec57abe523fd57e4a3b8eb98cce5506e Cr-Commit-Position: refs/heads/master@{#350514}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review comments #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -39 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java View 1 7 chunks +51 lines, -37 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java View 1 2 3 chunks +55 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Peter Beverloo
+mvanouwerkerk, PTAL, this is the current #10 crash in M45.
5 years, 2 months ago (2015-09-23 13:30:22 UTC) #2
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/1362943002/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/1362943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java:99: * @return The instance of the ...
5 years, 2 months ago (2015-09-23 13:52:49 UTC) #3
Peter Beverloo
Thanks Michael! https://codereview.chromium.org/1362943002/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/1362943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java:99: * @return The instance of the NotificationUIManager, ...
5 years, 2 months ago (2015-09-23 14:40:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1362943002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1362943002/20001
5 years, 2 months ago (2015-09-23 18:15:53 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/124565)
5 years, 2 months ago (2015-09-23 19:44:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1362943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1362943002/40001
5 years, 2 months ago (2015-09-24 08:32:35 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-24 09:32:26 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c409a15aec57abe523fd57e4a3b8eb98cce5506e Cr-Commit-Position: refs/heads/master@{#350514}
5 years, 2 months ago (2015-09-24 09:33:03 UTC) #14
Theresa
5 years, 2 months ago (2015-09-25 17:02:58 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1370733002/ by twellington@chromium.org.

The reason for reverting is:
NotificationUIManagerTest#testShowNotificationWithIcon failing on
instrumentation-nakasi-clankium and occam-svlete-clankium after this change:

https://uberchromegw.corp.google.com/i/internal.client.clank/builders/instrum...

https://uberchromegw.corp.google.com/i/internal.client.clank/builders/instrum...
.

Powered by Google App Engine
This is Rietveld 408576698