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

Issue 155273002: Repurpose NotificationBitmapFetcher to BitmapFetcher (Closed)

Created:
6 years, 10 months ago by gone
Modified:
6 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Repurpose NotificationBitmapFetcher to BitmapFetcher There was nothing specific about this class, so I'm generalizing it and moving it upwards in the tree for more use cases (e.g. app banners). Code that will use it is not ready for review, but is located at https://chromiumcodereview.appspot.com/156343002/ BUG=341556 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251308

Patch Set 1 #

Patch Set 2 : indentation #

Total comments: 2

Patch Set 3 : Repurposing other class instead #

Patch Set 4 : Prettifying #

Total comments: 6

Patch Set 5 : Addressing comments #

Total comments: 33

Patch Set 6 : Addressing comments #

Patch Set 7 : Appease windows bot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -442 lines) Patch
A + chrome/browser/bitmap_fetcher.h View 1 2 3 4 5 4 chunks +22 lines, -31 lines 0 comments Download
A chrome/browser/bitmap_fetcher.cc View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
A + chrome/browser/bitmap_fetcher_browsertest.cc View 1 2 3 4 5 10 chunks +28 lines, -34 lines 0 comments Download
A chrome/browser/bitmap_fetcher_delegate.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
D chrome/browser/notifications/sync_notifier/notification_bitmap_fetcher.h View 1 2 1 chunk +0 lines, -84 lines 0 comments Download
D chrome/browser/notifications/sync_notifier/notification_bitmap_fetcher.cc View 1 2 1 chunk +0 lines, -81 lines 0 comments Download
D chrome/browser/notifications/sync_notifier/notification_bitmap_fetcher_browsertest.cc View 1 2 3 4 5 1 chunk +0 lines, -202 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.h View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
gone
Hey thakis, newt mentioned that you looked at his image code for grabbing image for ...
6 years, 10 months ago (2014-02-05 00:35:14 UTC) #1
Nico
There's not much app icon-specific in this class, is there? It just fetches a URL ...
6 years, 10 months ago (2014-02-05 05:53:17 UTC) #2
gone
On 2014/02/05 05:53:17, Nico wrote: > There's not much app icon-specific in this class, is ...
6 years, 10 months ago (2014-02-05 09:55:46 UTC) #3
gone
On 2014/02/05 09:55:46, dfalcantara wrote: > On 2014/02/05 05:53:17, Nico wrote: > > There's not ...
6 years, 10 months ago (2014-02-06 01:24:55 UTC) #4
Nico
The rietveld subject doesn't make it into the commit log, so please add "Repurpose NotificationBitmapFetcher ...
6 years, 10 months ago (2014-02-06 01:34:48 UTC) #5
gone
On 2014/02/06 01:34:48, Nico wrote: > The rietveld subject doesn't make it into the commit ...
6 years, 10 months ago (2014-02-07 16:57:46 UTC) #6
pkotwicz
I do not mind doing a review, however I am not the author of notification_bitmap_fetcher.* ...
6 years, 10 months ago (2014-02-10 15:23:25 UTC) #7
Pete Williamson
Overall it looks good to me. Apologies, but there are a few things that I ...
6 years, 10 months ago (2014-02-11 03:41:10 UTC) #8
gone
https://chromiumcodereview.appspot.com/155273002/diff/110001/chrome/browser/bitmap_fetcher_browsertest.cc File chrome/browser/bitmap_fetcher_browsertest.cc (right): https://chromiumcodereview.appspot.com/155273002/diff/110001/chrome/browser/bitmap_fetcher_browsertest.cc#newcode77 chrome/browser/bitmap_fetcher_browsertest.cc:77: #define MAYBE_StartTest DISABLED_StartTest On 2014/02/11 03:41:11, Pete Williamson wrote: ...
6 years, 10 months ago (2014-02-11 04:08:23 UTC) #9
gone
https://chromiumcodereview.appspot.com/155273002/diff/110001/chrome/browser/bitmap_fetcher.cc File chrome/browser/bitmap_fetcher.cc (right): https://chromiumcodereview.appspot.com/155273002/diff/110001/chrome/browser/bitmap_fetcher.cc#newcode29 chrome/browser/bitmap_fetcher.cc:29: void BitmapFetcher::OnURLFetchComplete(const net::URLFetcher* source) { On 2014/02/11 03:41:11, Pete ...
6 years, 10 months ago (2014-02-11 05:32:06 UTC) #10
gone
On 2014/02/11 05:32:06, dfalcantara wrote: > https://chromiumcodereview.appspot.com/155273002/diff/110001/chrome/browser/bitmap_fetcher.cc > File chrome/browser/bitmap_fetcher.cc (right): > > https://chromiumcodereview.appspot.com/155273002/diff/110001/chrome/browser/bitmap_fetcher.cc#newcode29 > ...
6 years, 10 months ago (2014-02-12 17:09:20 UTC) #11
Pete Williamson
Sorry for the delay. LGTM
6 years, 10 months ago (2014-02-13 17:40:08 UTC) #12
gone
Thakis is apparently away now; +sky for chrome/OWNERS.
6 years, 10 months ago (2014-02-13 17:53:10 UTC) #13
sky
https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.cc File chrome/browser/bitmap_fetcher.cc (right): https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.cc#newcode15 chrome/browser/bitmap_fetcher.cc:15: : url_(url), delegate_(delegate) {} nit: since everything doesn't fit ...
6 years, 10 months ago (2014-02-13 18:55:05 UTC) #14
gone
petwil@: Do you know the answers to some of sky's implementation questions? I was simply ...
6 years, 10 months ago (2014-02-13 19:19:37 UTC) #15
gone
https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.cc File chrome/browser/bitmap_fetcher.cc (right): https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.cc#newcode42 chrome/browser/bitmap_fetcher.cc:42: image_decoder_ = On 2014/02/13 18:55:05, sky wrote: > I ...
6 years, 10 months ago (2014-02-13 19:28:30 UTC) #16
Pete Williamson
Answers to some of Sky's questions. All of Sky's other feedback seems valid and actionable. ...
6 years, 10 months ago (2014-02-13 21:30:30 UTC) #17
sky
You are right. I didn't realize that. Nice! -Scott On Thu, Feb 13, 2014 at ...
6 years, 10 months ago (2014-02-13 22:59:34 UTC) #18
sky
https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.h File chrome/browser/bitmap_fetcher.h (right): https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.h#newcode42 chrome/browser/bitmap_fetcher.h:42: // Start fetching the URL with the fetcher. The ...
6 years, 10 months ago (2014-02-13 23:12:30 UTC) #19
Pete Williamson
https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.h File chrome/browser/bitmap_fetcher.h (right): https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.h#newcode42 chrome/browser/bitmap_fetcher.h:42: // Start fetching the URL with the fetcher. The ...
6 years, 10 months ago (2014-02-13 23:27:06 UTC) #20
gone
I think I got most of the comments... https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.cc File chrome/browser/bitmap_fetcher.cc (right): https://chromiumcodereview.appspot.com/155273002/diff/310001/chrome/browser/bitmap_fetcher.cc#newcode15 chrome/browser/bitmap_fetcher.cc:15: : ...
6 years, 10 months ago (2014-02-13 23:39:38 UTC) #21
sky
LGTM
6 years, 10 months ago (2014-02-14 00:45:36 UTC) #22
gone
The CQ bit was checked by dfalcantara@chromium.org
6 years, 10 months ago (2014-02-14 02:02:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/155273002/760001
6 years, 10 months ago (2014-02-14 02:02:49 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 03:20:18 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 03:20:19 UTC) #26
gone
The CQ bit was checked by dfalcantara@chromium.org
6 years, 10 months ago (2014-02-14 03:27:44 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/155273002/760001
6 years, 10 months ago (2014-02-14 03:30:10 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 05:21:15 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 05:21:15 UTC) #30
gone
The CQ bit was checked by dfalcantara@chromium.org
6 years, 10 months ago (2014-02-14 05:29:45 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/155273002/760001
6 years, 10 months ago (2014-02-14 05:29:58 UTC) #32
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 14:18:20 UTC) #33
Message was sent while issue was closed.
Change committed as 251308

Powered by Google App Engine
This is Rietveld 408576698