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

Issue 508473002: Componentize component_updater: Move URLRequestPrepackagedInterceptor from content/ to net/ (Closed)

Created:
6 years, 4 months ago by tommycli
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, cbentzel+watch_chromium.org, extensions-reviews_chromium.org, waffles
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Componentize component_updater: Move URLRequestPrepackagedInterceptor from content/ to net/. This patch breaks the URLRequestPrepackagedInterceptor dependencies on content/. We want to use URLRequestPrepackagedInterceptor in unit tests that will be in components/. These tests cannot depend on content/. BUG=371463 TBR=wtc@chromium.org Committed: https://crrev.com/eaae5d98d9adb42a70c5529dbb6c70e95e848701 Cr-Commit-Position: refs/heads/master@{#293861}

Patch Set 1 #

Patch Set 2 : move to net #

Patch Set 3 : self review #

Total comments: 22

Patch Set 4 : #

Patch Set 5 : rebase onto patch that moves tests into components/ #

Patch Set 6 : rename to test_url_request_interceptor #

Patch Set 7 : run git cl format #

Total comments: 2

Patch Set 8 : Oops. Patchsets 5-7 include some junk because I didn't set the parent branch correctly. #

Patch Set 9 : limit git cl format to only portions relevant to this patch #

Patch Set 10 : #

Patch Set 11 : rebase onto origin/master #

Total comments: 2

Patch Set 12 : #

Total comments: 4

Patch Set 13 : address rsleevi comments #

Patch Set 14 : #

Patch Set 15 : merge #

Total comments: 21

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : rebase #

Patch Set 19 : rebase. #

Patch Set 20 : add to net/BUILD.gn #

Patch Set 21 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -310 lines) Patch
M chrome/browser/component_updater/test/component_updater_service_unittest.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/management/management_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +25 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -3 lines 0 comments Download
M components/component_updater/test/crx_downloader_unittest.cc View 1 2 3 4 5 6 7 8 18 chunks +31 lines, -37 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
M content/test/net/url_request_prepackaged_interceptor.h View 1 1 chunk +0 lines, -69 lines 0 comments Download
D content/test/net/url_request_prepackaged_interceptor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -187 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
A net/url_request/test_url_request_interceptor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +84 lines, -0 lines 0 comments Download
A net/url_request/test_url_request_interceptor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +199 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (4 generated)
tommycli
tommycli@chromium.org changed reviewers: + blundell@chromium.org, sorin@chromium.org, wtc@chromium.org
6 years, 3 months ago (2014-08-26 00:44:58 UTC) #1
tommycli
wtc, sorin, blundell: PTAL This is required to move component_updater tests to components/ without introducing ...
6 years, 3 months ago (2014-08-26 00:44:58 UTC) #2
blundell
blundell@chromium.org changed reviewers: + rsleevi@chromium.org, willchan@chromium.org
6 years, 3 months ago (2014-08-26 07:47:41 UTC) #3
blundell
+rsleevi@, willchan@ Ryan and/or Will might have feedback here as well.
6 years, 3 months ago (2014-08-26 07:47:41 UTC) #4
willchan no longer on Chromium
willchan@chromium.org changed reviewers: + pauljensen@chromium.org
6 years, 3 months ago (2014-08-26 18:06:23 UTC) #5
willchan no longer on Chromium
+pauljensen I'm going to defer to Paul on this, but my inclination is to NACK ...
6 years, 3 months ago (2014-08-26 18:06:23 UTC) #6
wtc
Review comments on patch set 3: https://codereview.chromium.org/508473002/diff/40001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/508473002/diff/40001/content/content_tests.gypi#newcode134 content/content_tests.gypi:134: 'test/net/url_request_slow_download_job.h', I assume ...
6 years, 3 months ago (2014-08-26 18:15:59 UTC) #7
Ryan Sleevi
On 2014/08/26 18:06:23, willchan wrote: > +pauljensen > > I'm going to defer to Paul ...
6 years, 3 months ago (2014-08-26 18:21:09 UTC) #8
tommycli
wtc/willchan, addressed your comments below: https://codereview.chromium.org/508473002/diff/40001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/508473002/diff/40001/content/content_tests.gypi#newcode134 content/content_tests.gypi:134: 'test/net/url_request_slow_download_job.h', On 2014/08/26 18:15:59, ...
6 years, 3 months ago (2014-08-26 18:21:34 UTC) #9
pauljensen
I just glanced at this. This "interceptor" is just a URLRequestFilter user, not a URLRequest::Interceptor. ...
6 years, 3 months ago (2014-08-26 18:22:02 UTC) #10
tommycli
rsleevi: To clarify, this is ONLY for test code that runs under iOS. These files ...
6 years, 3 months ago (2014-08-26 18:23:50 UTC) #11
Ryan Sleevi
On 2014/08/26 18:23:50, tommycli wrote: > rsleevi: > > To clarify, this is ONLY for ...
6 years, 3 months ago (2014-08-26 18:26:24 UTC) #12
Ryan Sleevi
On 2014/08/26 18:26:24, Ryan Sleevi wrote: > On 2014/08/26 18:23:50, tommycli wrote: > > rsleevi: ...
6 years, 3 months ago (2014-08-26 18:26:43 UTC) #13
willchan no longer on Chromium
https://codereview.chromium.org/508473002/diff/40001/net/url_request/url_request_prepackaged_interceptor.cc line 43 shows a class inheriting from net::URLRequestInterceptor. On Tue, Aug 26, 2014 at ...
6 years, 3 months ago (2014-08-26 18:32:01 UTC) #14
pauljensen
On 2014/08/26 18:32:01, willchan wrote: > https://codereview.chromium.org/508473002/diff/40001/net/url_request/url_request_prepackaged_interceptor.cc > line 43 shows a class inheriting from ...
6 years, 3 months ago (2014-08-26 18:35:24 UTC) #15
willchan no longer on Chromium
I can only hope the URLRequest::Interceptor deprecation moves faster so we don't have this FooBar ...
6 years, 3 months ago (2014-08-26 18:41:36 UTC) #16
tommycli
willchan: nice... net/ owners: I'm cool with whatever you guys want to call it. Maybe ...
6 years, 3 months ago (2014-08-26 18:44:32 UTC) #17
pauljensen
On 2014/08/26 18:44:32, tommycli wrote: > willchan: nice... > > net/ owners: I'm cool with ...
6 years, 3 months ago (2014-08-26 18:48:34 UTC) #18
pauljensen
On 2014/08/26 18:48:34, pauljensen wrote: > TestURLRequestInterceptor is already taken :) Oh actually that's in ...
6 years, 3 months ago (2014-08-26 18:49:45 UTC) #19
pauljensen
On 2014/08/26 18:49:45, pauljensen wrote: > On 2014/08/26 18:48:34, pauljensen wrote: > > TestURLRequestInterceptor is ...
6 years, 3 months ago (2014-08-26 18:52:41 UTC) #20
tommycli
On 2014/08/26 18:49:45, pauljensen wrote: > On 2014/08/26 18:48:34, pauljensen wrote: > > TestURLRequestInterceptor is ...
6 years, 3 months ago (2014-08-26 18:53:56 UTC) #21
tommycli
On 2014/08/26 18:52:41, pauljensen wrote: > On 2014/08/26 18:49:45, pauljensen wrote: > > On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 18:56:04 UTC) #22
Sorin Jianu
Thank you Tommy. I am asking a couple of question to understand the direction this ...
6 years, 3 months ago (2014-08-26 20:32:52 UTC) #23
tommycli
sorin: Responded to your comments. Thanks. https://codereview.chromium.org/508473002/diff/40001/chrome/browser/component_updater/test/component_updater_service_unittest.cc File chrome/browser/component_updater/test/component_updater_service_unittest.cc (right): https://codereview.chromium.org/508473002/diff/40001/chrome/browser/component_updater/test/component_updater_service_unittest.cc#newcode21 chrome/browser/component_updater/test/component_updater_service_unittest.cc:21: #include "content/public/browser/browser_thread.h" On ...
6 years, 3 months ago (2014-08-26 21:06:58 UTC) #24
tommycli
net/ OWNERS: PTAL. I renamed it to TestURLRequestInterceptor to fit in with the naming guidelines ...
6 years, 3 months ago (2014-08-26 22:40:23 UTC) #25
Sorin Jianu
lgtm Thank you Tommy! https://codereview.chromium.org/508473002/diff/40001/net/url_request/url_request_prepackaged_interceptor.h File net/url_request/url_request_prepackaged_interceptor.h (right): https://codereview.chromium.org/508473002/diff/40001/net/url_request/url_request_prepackaged_interceptor.h#newcode32 net/url_request/url_request_prepackaged_interceptor.h:32: const scoped_refptr<base::TaskRunner>& io_task_runner, On 2014/08/26 ...
6 years, 3 months ago (2014-08-26 23:31:50 UTC) #26
tommycli
sorin: Thanks. I changed the pointer to non-const. Makes sense. https://codereview.chromium.org/508473002/diff/40001/net/url_request/url_request_prepackaged_interceptor.h File net/url_request/url_request_prepackaged_interceptor.h (right): https://codereview.chromium.org/508473002/diff/40001/net/url_request/url_request_prepackaged_interceptor.h#newcode54 ...
6 years, 3 months ago (2014-08-26 23:45:22 UTC) #27
blundell
LGTM https://codereview.chromium.org/508473002/diff/200001/net/url_request/test_url_request_interceptor.cc File net/url_request/test_url_request_interceptor.cc (right): https://codereview.chromium.org/508473002/diff/200001/net/url_request/test_url_request_interceptor.cc#newcode20 net/url_request/test_url_request_interceptor.cc:20: class URLRequestPrepackagedJob : public net::URLRequestFileJob { Should this ...
6 years, 3 months ago (2014-08-27 13:02:27 UTC) #28
tommycli
blundell: thanks https://codereview.chromium.org/508473002/diff/200001/net/url_request/test_url_request_interceptor.cc File net/url_request/test_url_request_interceptor.cc (right): https://codereview.chromium.org/508473002/diff/200001/net/url_request/test_url_request_interceptor.cc#newcode20 net/url_request/test_url_request_interceptor.cc:20: class URLRequestPrepackagedJob : public net::URLRequestFileJob { On ...
6 years, 3 months ago (2014-08-27 15:41:11 UTC) #29
tommycli
rsleevi OR willchan: May I have approval for the TestURLRequestInterceptor move into net/url_request? Thanks!!
6 years, 3 months ago (2014-08-28 17:34:34 UTC) #30
Ryan Sleevi
I'll defer to Will, as he had the most original concerns (I was and am ...
6 years, 3 months ago (2014-08-28 17:39:53 UTC) #31
willchan no longer on Chromium
Wait, I defer to you and Paul :) My concerns revolved around my incorrect understanding ...
6 years, 3 months ago (2014-08-28 17:43:55 UTC) #32
Ryan Sleevi
Everyone wants to pass the buck :) So, at the risk of being a pain, ...
6 years, 3 months ago (2014-08-28 17:47:00 UTC) #33
Ryan Sleevi
On 2014/08/28 17:47:00, Ryan Sleevi wrote: > Everyone wants to pass the buck :) > ...
6 years, 3 months ago (2014-08-28 17:47:59 UTC) #34
tommycli
rsleevi: addressed your comments below https://codereview.chromium.org/508473002/diff/220001/net/url_request/test_url_request_interceptor.h File net/url_request/test_url_request_interceptor.h (right): https://codereview.chromium.org/508473002/diff/220001/net/url_request/test_url_request_interceptor.h#newcode24 net/url_request/test_url_request_interceptor.h:24: // occurs while the ...
6 years, 3 months ago (2014-08-28 17:54:07 UTC) #35
tommycli
On 2014/08/28 17:47:59, Ryan Sleevi wrote: > On 2014/08/28 17:47:00, Ryan Sleevi wrote: > > ...
6 years, 3 months ago (2014-08-28 18:02:58 UTC) #36
wtc
wtc@chromium.org changed reviewers: - wtc@chromium.org
6 years, 3 months ago (2014-08-28 23:50:09 UTC) #37
tommycli
rsleevi: ping
6 years, 3 months ago (2014-08-29 18:18:09 UTC) #38
Ryan Sleevi
Paul for one question below. https://codereview.chromium.org/508473002/diff/280001/net/url_request/test_url_request_interceptor.cc File net/url_request/test_url_request_interceptor.cc (right): https://codereview.chromium.org/508473002/diff/280001/net/url_request/test_url_request_interceptor.cc#newcode37 net/url_request/test_url_request_interceptor.cc:37: }; Document? To be ...
6 years, 3 months ago (2014-09-03 00:23:32 UTC) #39
pauljensen
https://codereview.chromium.org/508473002/diff/280001/net/url_request/test_url_request_interceptor.cc File net/url_request/test_url_request_interceptor.cc (right): https://codereview.chromium.org/508473002/diff/280001/net/url_request/test_url_request_interceptor.cc#newcode62 net/url_request/test_url_request_interceptor.cc:62: hostname); On 2014/09/03 00:23:31, Ryan Sleevi wrote: > Paul ...
6 years, 3 months ago (2014-09-03 11:52:51 UTC) #40
tommycli
rsleevi: Sorry for the delay. I just got back from travel. I addressed your comments ...
6 years, 3 months ago (2014-09-05 15:03:08 UTC) #41
tommycli
rsleevi: friendly ping, thanks!
6 years, 3 months ago (2014-09-08 16:55:17 UTC) #42
Ryan Sleevi
lgtm
6 years, 3 months ago (2014-09-08 19:21:08 UTC) #43
tommycli
rsleevi: Thanks! thestig: Can I get a review for: chrome/browser/extensions/api/image_writer_private/write_from_url_operation_unittest.cc chrome/browser/extensions/api/management/management_browsertest.cc chrome/browser/extensions/extension_disabled_ui_browsertest.cc ?
6 years, 3 months ago (2014-09-08 19:48:18 UTC) #45
Lei Zhang
I defer to yoz, a c/b/extensions OWNER.
6 years, 3 months ago (2014-09-08 20:03:13 UTC) #47
Yoyo Zhou
On 2014/09/08 20:03:13, Lei Zhang wrote: > I defer to yoz, a c/b/extensions OWNER. owners ...
6 years, 3 months ago (2014-09-08 20:37:01 UTC) #48
tommycli
wtc/willchan: May I have a stamp for content/test/net ? (No one else on the thread ...
6 years, 3 months ago (2014-09-08 20:39:25 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/508473002/400001
6 years, 3 months ago (2014-09-08 22:44:23 UTC) #52
commit-bot: I haz the power
Committed patchset #21 (id:400001) as f5ae2a1166b84fd0bea27ac1ed0ea8669ae2d477
6 years, 3 months ago (2014-09-09 06:04:29 UTC) #53
commit-bot: I haz the power
Patchset 21 (id:??) landed as https://crrev.com/eaae5d98d9adb42a70c5529dbb6c70e95e848701 Cr-Commit-Position: refs/heads/master@{#293861}
6 years, 3 months ago (2014-09-10 03:50:48 UTC) #54
willchan no longer on Chromium
Note that both wtc and I were out last week (and I'm going on leave ...
6 years, 3 months ago (2014-09-15 23:37:09 UTC) #55
tommycli
6 years, 3 months ago (2014-09-16 00:07:07 UTC) #56
Message was sent while issue was closed.
On 2014/09/15 23:37:09, willchan OOO until 03-22-15 wrote:
> Note that both wtc and I were out last week (and I'm going on leave soon). TBR
> is not appropriate for when reviewers are on vacation, especially when there
are
> 11 people in the OWNERS file. Please find another reviewer next time rather
than
> TBR'ing.
> 
> Also, rsleevi@ should really be in that OWNERS file.
> 
> LGTM.

willchan: Sorry about that will. I figured that since it was purely a deletion
and rsleevi approved, TBR was acceptable. 

I'll find a another reviewer next time.

Powered by Google App Engine
This is Rietveld 408576698