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

Issue 6969067: Allow URLFetcher to save results in a file. Have CRX updates use this capability. (Closed)

Created:
9 years, 7 months ago by Sam Kerner (Chrome)
Modified:
9 years, 6 months ago
CC:
fishd, chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Allow URLFetcher to save results in a file. Have CRX updates use this capability. Darin, this is based on your recommendation from http://codereview.chromium.org/6904057/ . BUG=82568 TEST=URLFetcher*Test.*:ExtensionUpdaterTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86280

Patch Set 1 : Allow URLFetcher to save the response as a file. #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Add the first user of the file fetching feature. #

Patch Set 4 : Fix tests #

Total comments: 11

Patch Set 5 : Address rev comments. #

Patch Set 6 : Rebase for commit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+818 lines, -226 lines) Patch
M chrome/browser/extensions/extension_updater.h View 1 2 3 4 5 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 2 3 4 9 chunks +97 lines, -136 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 1 2 3 4 5 8 chunks +54 lines, -38 lines 0 comments Download
M chrome/common/net/test_url_fetcher_factory.h View 1 2 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/common/net/test_url_fetcher_factory.cc View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/common/net/url_fetcher.h View 1 2 3 4 7 chunks +70 lines, -14 lines 0 comments Download
M chrome/common/net/url_fetcher.cc View 1 2 3 4 5 21 chunks +425 lines, -25 lines 1 comment Download
M chrome/common/net/url_fetcher_unittest.cc View 1 2 3 4 4 chunks +102 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Sam Kerner (Chrome)
Darin, I am still working on tests for this change, but I would appreciate a ...
9 years, 7 months ago (2011-05-13 18:22:06 UTC) #1
darin (slow to review)
sorry, most of my comments are about how sad the URLFetcher interface is. http://codereview.chromium.org/6969067/diff/1005/chrome/common/net/url_fetcher.h File ...
9 years, 7 months ago (2011-05-16 04:57:04 UTC) #2
Sam Kerner (Chrome)
Comments addressed. Ready for review. http://codereview.chromium.org/6969067/diff/1005/chrome/common/net/url_fetcher.h File chrome/common/net/url_fetcher.h (right): http://codereview.chromium.org/6969067/diff/1005/chrome/common/net/url_fetcher.h#newcode99 chrome/common/net/url_fetcher.h:99: // instance is destroyed. ...
9 years, 7 months ago (2011-05-17 04:09:34 UTC) #3
darin (slow to review)
On Mon, May 16, 2011 at 9:09 PM, <skerner@chromium.org> wrote: > Comments addressed. Ready for ...
9 years, 7 months ago (2011-05-17 16:23:31 UTC) #4
Sam Kerner (Chrome)
+Antony Added a first user of the fetch-to-file behavior: The extensions updater. Added Antony to ...
9 years, 7 months ago (2011-05-18 05:09:47 UTC) #5
asargent_no_longer_on_chrome
http://codereview.chromium.org/6969067/diff/14001/chrome/browser/extensions/extension_updater.cc File chrome/browser/extensions/extension_updater.cc (left): http://codereview.chromium.org/6969067/diff/14001/chrome/browser/extensions/extension_updater.cc#oldcode890 chrome/browser/extensions/extension_updater.cc:890: NotifyIfFinished(); whoa, are you sure this isn't needed anymore? ...
9 years, 7 months ago (2011-05-18 19:00:49 UTC) #6
Sam Kerner (Chrome)
Comments addressed. Ready for another look. http://codereview.chromium.org/6969067/diff/14001/chrome/browser/extensions/extension_updater.cc File chrome/browser/extensions/extension_updater.cc (left): http://codereview.chromium.org/6969067/diff/14001/chrome/browser/extensions/extension_updater.cc#oldcode890 chrome/browser/extensions/extension_updater.cc:890: NotifyIfFinished(); On 2011/05/18 ...
9 years, 7 months ago (2011-05-18 23:45:56 UTC) #7
asargent_no_longer_on_chrome
Did you forget to upload the new version? On Wed, May 18, 2011 at 4:45 ...
9 years, 7 months ago (2011-05-19 00:01:11 UTC) #8
skerner
On Wed, May 18, 2011 at 8:00 PM, Antony Sargent <asargent@chromium.org> wrote: > Did you ...
9 years, 7 months ago (2011-05-19 00:05:11 UTC) #9
asargent_no_longer_on_chrome
LGTM
9 years, 7 months ago (2011-05-19 00:30:00 UTC) #10
willchan no longer on Chromium
In the future, can you add eroman and me to reviews for URLFetcher? Even though ...
9 years, 6 months ago (2011-06-21 13:55:15 UTC) #11
skerner
9 years, 6 months ago (2011-06-21 16:52:34 UTC) #12
On Tue, Jun 21, 2011 at 9:55 AM,  <willchan@chromium.org> wrote:
> In the future, can you add eroman and me to reviews for URLFetcher? Even
> though
> this is not in net/ proper, it's one of the main interfaces to net/ and so
> we're
> trying to keep it sane, even though it's a pretty bad mess.

Okay, will do.

>
>
>
http://codereview.chromium.org/6969067/diff/20001/chrome/common/net/url_fetch...
> File chrome/common/net/url_fetcher.cc (right):
>
>
http://codereview.chromium.org/6969067/diff/20001/chrome/common/net/url_fetch...
> chrome/common/net/url_fetcher.cc:394:
> core_->InformDelegateFetchIsComplete();
> This code is wrong. The delegate can only be called on the delegate
> message loop. URLRequest can only be used on the IO message loop. The
> delegate message loop and the IO message loop are not always the same.
> Therefore, we have a race condition here.

Good catch.  Will send a CL to fix this shortly.

>
> http://codereview.chromium.org/6969067/
>

Powered by Google App Engine
This is Rietveld 408576698