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

Issue 2625703002: [MediaNotification] Don't check HTTP status code for image fetch (Closed)

Created:
3 years, 11 months ago by Zhiqiang Zhang (Slow)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MediaNotification] Don't check HTTP status code for image fetch ImageDownloader does not return valid HTTP status code for local URLs. This CL removes the check for HTTP status code from MediaImageManager, so that it only checks for the list of downloaded to see if the image fetch succeeded or not. This CL also adds tests for verifying ImageDownloader returns correct results. BUG=679694 Review-Url: https://codereview.chromium.org/2625703002 Cr-Commit-Position: refs/heads/master@{#442949} Committed: https://chromium.googlesource.com/chromium/src/+/56eb36cf3d8aea3d182695e7d518daa1a7a46a66

Patch Set 1 #

Patch Set 2 : fixed on the client side, added tests #

Patch Set 3 : fixed junit test & cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -13 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaImageManager.java View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaImageManagerTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 2 4 chunks +33 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
Zhiqiang Zhang (Slow)
PTAL I think this CL is more Blink-related but the code is in content
3 years, 11 months ago (2017-01-10 13:33:06 UTC) #4
jochen (gone - plz use gerrit)
can you add a test please?
3 years, 11 months ago (2017-01-10 14:18:09 UTC) #5
Zhiqiang Zhang (Slow)
PTAL +mlamouri for MediaImageDownloader since the fix is now on the client side. On 2017/01/10 ...
3 years, 11 months ago (2017-01-10 16:56:25 UTC) #8
jochen (gone - plz use gerrit)
test lgtm. deferring to mlamouri@ for the java change
3 years, 11 months ago (2017-01-11 09:47:00 UTC) #9
mlamouri (slow - plz ping)
lgtm
3 years, 11 months ago (2017-01-11 11:16:52 UTC) #10
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/2625703002/20001
3 years, 11 months ago (2017-01-11 11:17:17 UTC) #12
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/210929)
3 years, 11 months ago (2017-01-11 12:23:21 UTC) #14
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/2625703002/20001
3 years, 11 months ago (2017-01-11 14:57:13 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/98181)
3 years, 11 months ago (2017-01-11 16:11:30 UTC) #18
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/2625703002/40001
3 years, 11 months ago (2017-01-11 16:49:55 UTC) #21
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 17:49:58 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/56eb36cf3d8aea3d182695e7d518...

Powered by Google App Engine
This is Rietveld 408576698