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

Issue 16358002: Allow MultiResolutionImageFetcher to fetch image from file:/// protocol (Closed)

Created:
7 years, 6 months ago by Hongbo Min
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow MultiResolutionImageFetcher to fetch image from file scheme URL This fix is to also check the scheme of image url for fetching image from file scheme since there is no http status code for file scheme URL. BUG=246511 TEST=Follow the description of http://crbug.com/246511 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211568

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : check url is file protocol instead #

Total comments: 4

Patch Set 4 : remove static_cast usage #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc View 1 2 3 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 30 (0 generated)
Hongbo Min
Nico, could you please have a look at this CL? Thanks.
7 years, 6 months ago (2013-06-04 07:53:28 UTC) #1
Nico
https://codereview.chromium.org/16358002/diff/3001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/16358002/diff/3001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode50 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:50: if (http_status_code_ == 200 || (net::IsSupportedImageMimeType(mime_type) && This will ...
7 years, 6 months ago (2013-06-04 18:01:20 UTC) #2
Hongbo Min
On 2013/06/04 18:01:20, Nico wrote: Is there any other way to know when icon is ...
7 years, 6 months ago (2013-06-05 09:18:12 UTC) #3
Nico
I don't know, but you could check for status == 200 or protocol == file:// ...
7 years, 6 months ago (2013-06-05 15:30:30 UTC) #4
Hongbo Min
Updated with checking image url scheme instead. Pls review it. Thanks.
7 years, 6 months ago (2013-06-07 09:54:49 UTC) #5
Nico
Thanks, I think this is better. Did you find other code that does things like ...
7 years, 6 months ago (2013-06-07 16:17:18 UTC) #6
Hongbo Min
On 2013/06/07 16:17:18, Nico wrote: > Thanks, I think this is better. > > Did ...
7 years, 6 months ago (2013-06-08 02:52:10 UTC) #7
Hongbo Min
On 2013/06/08 02:52:10, Hongbo Min wrote: > On 2013/06/07 16:17:18, Nico wrote: > > Thanks, ...
7 years, 6 months ago (2013-06-08 12:22:07 UTC) #8
Hongbo Min
ping Nico@
7 years, 6 months ago (2013-06-12 02:23:26 UTC) #9
Nico
lgtm, I think this is fine. Please change the TEST= line to say how to ...
7 years, 6 months ago (2013-06-13 16:39:26 UTC) #10
abarth-chromium
Yeah, if you've gotten this far already, no harm in going further. :) https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File ...
7 years, 6 months ago (2013-06-13 20:07:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/16358002/9001
7 years, 6 months ago (2013-06-14 05:19:31 UTC) #12
Hongbo Min
On 2013/06/13 16:39:26, Nico wrote: > lgtm, I think this is fine. Please change the ...
7 years, 6 months ago (2013-06-14 05:19:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/16358002/9001
7 years, 6 months ago (2013-06-14 05:24:54 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=9120
7 years, 6 months ago (2013-06-14 05:33:37 UTC) #15
Hongbo Min
jamesr@, could you pls have a look at this CL? Thanks.
7 years, 5 months ago (2013-07-01 05:25:56 UTC) #16
Hongbo Min
https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode47 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:47: GURL url = static_cast<GURL>(response.url()); On 2013/06/13 20:07:39, abarth wrote: ...
7 years, 5 months ago (2013-07-01 05:39:33 UTC) #17
abarth-chromium
https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode47 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:47: GURL url = static_cast<GURL>(response.url()); On 2013/07/01 05:39:33, Hongbo Min ...
7 years, 5 months ago (2013-07-01 05:53:34 UTC) #18
Hongbo Min
Please have a review again. Thanks. https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/16358002/diff/9001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode47 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:47: GURL url = ...
7 years, 5 months ago (2013-07-04 08:49:35 UTC) #19
abarth-chromium
LGTM
7 years, 5 months ago (2013-07-08 18:47:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/16358002/32001
7 years, 5 months ago (2013-07-09 01:13:23 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=14184
7 years, 5 months ago (2013-07-09 01:29:07 UTC) #22
Hongbo Min
ping Nico@
7 years, 5 months ago (2013-07-11 01:00:53 UTC) #23
Nico
On 2013/07/11 01:00:53, Hongbo Min wrote: > ping Nico@ I lgtm'd this 4 weeks ago ...
7 years, 5 months ago (2013-07-11 01:13:33 UTC) #24
Nico
On 2013/07/11 01:13:33, Nico wrote: > On 2013/07/11 01:00:53, Hongbo Min wrote: > > ping ...
7 years, 5 months ago (2013-07-11 01:14:13 UTC) #25
Hongbo Min
On 2013/07/11 01:14:13, Nico wrote: > On 2013/07/11 01:13:33, Nico wrote: > > On 2013/07/11 ...
7 years, 5 months ago (2013-07-11 01:40:23 UTC) #26
Hongbo Min
On 2013/07/11 01:13:33, Nico wrote: > On 2013/07/11 01:00:53, Hongbo Min wrote: > > ping ...
7 years, 5 months ago (2013-07-11 01:40:45 UTC) #27
jamesr
lgtm https://codereview.chromium.org/16358002/diff/32001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc File content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (right): https://codereview.chromium.org/16358002/diff/32001/content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc#newcode48 content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc:48: if (http_status_code_ == 200 || url.SchemeIsFile()) { why ...
7 years, 5 months ago (2013-07-13 01:40:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/16358002/32001
7 years, 5 months ago (2013-07-13 10:10:02 UTC) #29
commit-bot: I haz the power
7 years, 5 months ago (2013-07-13 15:04:21 UTC) #30
Message was sent while issue was closed.
Change committed as 211568

Powered by Google App Engine
This is Rietveld 408576698