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

Issue 2627103002: [MediaNotification] Avoid fetching image twice when artwork doesn't change (Closed)

Created:
3 years, 11 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 11 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MediaNotification] Avoid fetching image twice when artwork doesn't change When switching src or modifying metadata, the whole metadata will be sent to MediaSessionTabHelper causing it to download the same image src twice even if the artwork stays the same. This CL make MediaImageManager to remember the src of the last downloaded image so that it can avoid fetch the same src. BUG=672023 Review-Url: https://codereview.chromium.org/2627103002 Cr-Commit-Position: refs/heads/master@{#443256} Committed: https://chromium.googlesource.com/chromium/src/+/d9031fa168c6d3a3b2437f56eea99d3c2a16572e

Patch Set 1 : need tests! #

Patch Set 2 : rebased #

Patch Set 3 : fixed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -19 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaImageManager.java View 1 4 chunks +23 lines, -4 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaImageManagerTest.java View 1 2 9 chunks +82 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
Zhiqiang Zhang (Slow)
PTAL (forgive me for sending you too many CLs recently but I think you know ...
3 years, 11 months ago (2017-01-11 18:07:42 UTC) #2
mlamouri (slow - plz ping)
lgtm I'm not a huge fan of this because it will break the assumptions that ...
3 years, 11 months ago (2017-01-12 14:21:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627103002/1
3 years, 11 months ago (2017-01-12 14:21:49 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/19994) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-12 14:23:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627103002/20001
3 years, 11 months ago (2017-01-12 14:30:08 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/211952)
3 years, 11 months ago (2017-01-12 15:38:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627103002/40001
3 years, 11 months ago (2017-01-12 15:55:45 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 16:26:33 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d9031fa168c6d3a3b2437f56eea9...

Powered by Google App Engine
This is Rietveld 408576698