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

Issue 1356933002: make ProxyService::CreateSystemProxyConfigService return scoped_ptrs (Closed)

Created:
5 years, 3 months ago by Charlie Harrison
Modified:
5 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, cbentzel+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, lcwu+watch_chromium.org, chromoting-reviews_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, halliwell+watch_chromium.org, Paweł Hajdan Jr., gunsch+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, ben+mojo_chromium.org, darin (slow to review), jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

make ProxyService::CreateSystemProxyConfigService return scoped_ptrs This change is fairly straightforward. I ended up refactoring ProxyServiceFactory too because it makes the resulting code much easier to reason about, so we are only making scoped pointers out of raw pointers in as few places as possible new CL to reflect Randy and Pauls changes in master BUG=523075 TBR=brettw@chromium.org Committed: https://crrev.com/b7e3a08f4c62c69093ecb3a258e18f2cdd340b08 Cr-Commit-Position: refs/heads/master@{#350207}

Patch Set 1 #

Patch Set 2 : ios, chromecast, and android #

Patch Set 3 : android webview fix #

Patch Set 4 : small ios fix #

Total comments: 16

Patch Set 5 : Mmenke initial review #

Total comments: 13

Patch Set 6 : Randy initial notes #

Patch Set 7 : need static cast #

Total comments: 5

Patch Set 8 : Android cast fixes #

Patch Set 9 : Fix mistakes #

Patch Set 10 : Missed API change in cronet #

Patch Set 11 : proper namespacing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -192 lines) Patch
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -12 lines 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/net/proxy_service_factory.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/proxy_service_factory.cc View 1 2 3 4 5 5 chunks +10 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/service/net/service_url_request_context_getter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/browser/url_request_context_factory.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -5 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/resolve_proxy_msg_helper_unittest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/net/proxy_service_factory.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/net/proxy_service_factory.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M ios/crnet/crnet_environment.mm View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M ios/web/shell/shell_url_request_context_getter.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 4 chunks +7 lines, -8 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 9 chunks +24 lines, -24 lines 0 comments Download
M net/proxy/proxy_service_mojo.h View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M net/proxy/proxy_service_mojo.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M net/proxy/proxy_service_mojo_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 55 chunks +108 lines, -56 lines 0 comments Download
M net/proxy/proxy_service_v8.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_service_v8.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -10 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 3 chunks +12 lines, -9 lines 0 comments Download
M remoting/base/url_request_context_getter.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
Charlie Harrison
Could you take a look before I rope in other reviewers? Thanks :)
5 years, 3 months ago (2015-09-18 18:30:13 UTC) #2
mmenke
Looks good, thanks for taking this on! https://codereview.chromium.org/1356933002/diff/50001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/1356933002/diff/50001/android_webview/browser/aw_browser_context.cc#newcode66 android_webview/browser/aw_browser_context.cc:66: net::ProxyConfigService* CreateProxyConfigService() ...
5 years, 3 months ago (2015-09-18 18:58:54 UTC) #3
mmenke
Oh, and since this is just a minor API change, you can TBR OWNERs once ...
5 years, 3 months ago (2015-09-18 19:01:18 UTC) #4
Charlie Harrison
https://codereview.chromium.org/1356933002/diff/50001/android_webview/browser/aw_browser_context.cc File android_webview/browser/aw_browser_context.cc (right): https://codereview.chromium.org/1356933002/diff/50001/android_webview/browser/aw_browser_context.cc#newcode66 android_webview/browser/aw_browser_context.cc:66: net::ProxyConfigService* CreateProxyConfigService() { On 2015/09/18 18:58:53, mmenke wrote: > ...
5 years, 3 months ago (2015-09-18 19:56:06 UTC) #5
Randy Smith (Not in Mondays)
I'm going to be on vacation next week, so I'll leave this review in Matt's ...
5 years, 3 months ago (2015-09-18 20:14:55 UTC) #6
mmenke
https://codereview.chromium.org/1356933002/diff/70001/ios/crnet/crnet_environment.mm File ios/crnet/crnet_environment.mm (right): https://codereview.chromium.org/1356933002/diff/70001/ios/crnet/crnet_environment.mm#newcode411 ios/crnet/crnet_environment.mm:411: proxy_config_service_.Pass(), 0, nullptr) On 2015/09/18 20:14:55, rdsmith wrote: > ...
5 years, 3 months ago (2015-09-18 20:31:11 UTC) #7
Randy Smith (Not in Mondays)
LGTM; Matt can take it from here. See you in a week. https://codereview.chromium.org/1356933002/diff/70001/ios/crnet/crnet_environment.mm File ios/crnet/crnet_environment.mm ...
5 years, 3 months ago (2015-09-18 20:35:03 UTC) #8
Charlie Harrison
https://codereview.chromium.org/1356933002/diff/70001/chrome/browser/net/proxy_service_factory.cc File chrome/browser/net/proxy_service_factory.cc (right): https://codereview.chromium.org/1356933002/diff/70001/chrome/browser/net/proxy_service_factory.cc#newcode85 chrome/browser/net/proxy_service_factory.cc:85: return tracker->CreateTrackingProxyConfigService(base_service.Pass()).Pass(); On 2015/09/18 20:14:55, rdsmith wrote: > If ...
5 years, 3 months ago (2015-09-21 16:47:05 UTC) #9
mmenke
LGTM, just a couple optional suggestions of the "while you're here..." variety. https://codereview.chromium.org/1356933002/diff/110001/net/url_request/url_request_context_builder.cc File net/url_request/url_request_context_builder.cc ...
5 years, 3 months ago (2015-09-21 21:34:51 UTC) #10
mmenke
Oh, and those Android build failures look like real failures, to me.
5 years, 3 months ago (2015-09-21 21:38:07 UTC) #11
Charlie Harrison
On 2015/09/21 21:38:07, mmenke wrote: > Oh, and those Android build failures look like real ...
5 years, 3 months ago (2015-09-21 21:51:40 UTC) #12
mmenke
On 2015/09/21 21:51:40, csharrison wrote: > On 2015/09/21 21:38:07, mmenke wrote: > > Oh, and ...
5 years, 3 months ago (2015-09-21 21:58:09 UTC) #13
mmenke
Just to save you a trybot round, you'll need to merge with https://codereview.chromium.org/1318573006 and update ...
5 years, 3 months ago (2015-09-21 22:22:25 UTC) #14
Charlie Harrison
On 2015/09/21 22:22:25, mmenke wrote: > Just to save you a trybot round, you'll need ...
5 years, 3 months ago (2015-09-21 22:31:07 UTC) #15
mmenke
On 2015/09/21 22:31:07, csharrison wrote: > On 2015/09/21 22:22:25, mmenke wrote: > > Just to ...
5 years, 3 months ago (2015-09-21 22:55:50 UTC) #16
Charlie Harrison
On 2015/09/21 22:55:50, mmenke wrote: > On 2015/09/21 22:31:07, csharrison wrote: > > On 2015/09/21 ...
5 years, 3 months ago (2015-09-21 22:58:28 UTC) #17
Charlie Harrison
TBRing for trivial api change. https://codereview.chromium.org/1356933002/diff/110001/net/url_request/url_request_context_builder.cc File net/url_request/url_request_context_builder.cc (right): https://codereview.chromium.org/1356933002/diff/110001/net/url_request/url_request_context_builder.cc#newcode310 net/url_request/url_request_context_builder.cc:310: #endif // defined(OS_LINUX) || ...
5 years, 3 months ago (2015-09-22 18:00:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356933002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356933002/190001
5 years, 3 months ago (2015-09-22 18:03:13 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/102540)
5 years, 3 months ago (2015-09-22 18:19:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356933002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356933002/190001
5 years, 3 months ago (2015-09-22 19:05:06 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:190001)
5 years, 3 months ago (2015-09-22 19:13:13 UTC) #27
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 19:14:10 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/b7e3a08f4c62c69093ecb3a258e18f2cdd340b08
Cr-Commit-Position: refs/heads/master@{#350207}

Powered by Google App Engine
This is Rietveld 408576698