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

Issue 2901213004: Componentize safe_browsing: factor out SafeBrowsingURLRequestContextGetter. (Closed)

Created:
3 years, 7 months ago by timvolodine
Modified:
3 years, 7 months ago
Reviewers:
pauljensen, Jialiu Lin
CC:
chromium-reviews, vakh+watch_chromium.org, droger+watchlist_chromium.org, grt+watch_chromium.org, sdefresne+watchlist_chromium.org, blundell+watchlist_chromium.org, Nathan Parker
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize safe_browsing: factor out SafeBrowsingURLRequestContextGetter. Factor out SafeBrowsingURLRequestContextGetter from safe_browsing_service and move it as a separate class into components/safe_browsing/browser/. This patch also ensures that it's possible to provide a custom "user data directory" upon construction. This refactoring allows for the SafeBrowsingURLRequestContextGetter and its dedicated cookie store to be resused in the Android WebView implementation. Design doc: https://goo.gl/TfoY9K, section 2. BUG=700351, 688629 TBR=pauljensen@chromium.org Review-Url: https://codereview.chromium.org/2901213004 Cr-Commit-Position: refs/heads/master@{#474636} Committed: https://chromium.googlesource.com/chromium/src/+/b00d167d8b2d7a51814f748585860ea510744a2c

Patch Set 1 #

Patch Set 2 : fix DEPS #

Patch Set 3 : cleanup #

Patch Set 4 : cleanup includes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -159 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 7 chunks +8 lines, -159 lines 2 comments Download
M components/safe_browsing/browser/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/safe_browsing/browser/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
A components/safe_browsing/browser/safe_browsing_url_request_context_getter.h View 1 chunk +67 lines, -0 lines 0 comments Download
A components/safe_browsing/browser/safe_browsing_url_request_context_getter.cc View 1 2 3 1 chunk +134 lines, -0 lines 0 comments Download
M components/safe_browsing/common/safebrowsing_constants.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/safe_browsing/common/safebrowsing_constants.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
timvolodine
jialiul@: please take a look. +cc:nparker@
3 years, 7 months ago (2017-05-24 15:33:41 UTC) #6
Jialiu Lin
LGTM Thanks! https://codereview.chromium.org/2901213004/diff/60001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): https://codereview.chromium.org/2901213004/diff/60001/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode51 chrome/browser/safe_browsing/safe_browsing_service.cc:51: #include "net/url_request/url_request_context_getter.h" nit: Do you still need ...
3 years, 7 months ago (2017-05-24 21:42:32 UTC) #9
timvolodine
thanks for the review! https://codereview.chromium.org/2901213004/diff/60001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): https://codereview.chromium.org/2901213004/diff/60001/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode51 chrome/browser/safe_browsing/safe_browsing_service.cc:51: #include "net/url_request/url_request_context_getter.h" On 2017/05/24 21:42:31, ...
3 years, 7 months ago (2017-05-25 13:01:05 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/2901213004/60001
3 years, 7 months ago (2017-05-25 13:01:23 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/447360)
3 years, 7 months ago (2017-05-25 13:08:26 UTC) #14
timvolodine
+pauljensen@ because presubmit requires this due to DEPS change: '+net/cookies', '+net/extras', '+net/ssl',
3 years, 7 months ago (2017-05-25 13:18:21 UTC) #16
timvolodine
actually adding TBR=pauljensen@ as this is a refactoring
3 years, 7 months ago (2017-05-25 13:19:25 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/2901213004/60001
3 years, 7 months ago (2017-05-25 13:19:45 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/b00d167d8b2d7a51814f748585860ea510744a2c
3 years, 7 months ago (2017-05-25 13:23:55 UTC) #23
pauljensen
On 2017/05/25 13:19:25, timvolodine wrote: > actually adding TBR=pauljensen@ as this is a refactoring My ...
3 years, 7 months ago (2017-05-25 13:41:02 UTC) #24
timvolodine
3 years, 7 months ago (2017-05-25 15:08:43 UTC) #25
Message was sent while issue was closed.
On 2017/05/25 13:41:02, pauljensen wrote:
> On 2017/05/25 13:19:25, timvolodine wrote:
> > actually adding TBR=pauljensen@ as this is a refactoring
> 
> My reading of the acceptable use of TBR does not include refactoring of a
> non-mechanical nature:
>
https://chromium.googlesource.com/chromium/src/+/master/docs/code_reviews.md#...

I was assuming the net/ DEPS changes were sufficiently mechanical to warrant a
TBR in this case. Apologies if this came over as premature, let me know if there
are any comments. thanks!

Powered by Google App Engine
This is Rietveld 408576698