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

Issue 6292017: Extended: Add "system" URLRequestContext (Closed)

Created:
9 years, 10 months ago by battre
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org, nkostylev+cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

This is an extension of http://codereview.chromium.org/6280018 that provides a proxy configuration which respects command line parameters and policies This was committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78228, iyengar asked to commit again after fixing trunk. BUG=67232, 70732 TEST=Start chrome, observe two PROXY_CONFIG_CHANGED events in about:net-internals (if you are on a corporate network with PAC configurations), observe that everything behaves as usual. In particular the https://www.google.com/searchdomaincheck?format=domain&type=chrome request should not fail as it uses the new system URLRequestContext. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78362

Patch Set 1 #

Patch Set 2 : fixed refcoutned pointer issues #

Patch Set 3 : Work in progress #

Patch Set 4 : Continued #

Total comments: 17

Patch Set 5 : Addressed comments #

Total comments: 12

Patch Set 6 : Addressed comments #

Patch Set 7 : Cleanup #

Total comments: 10

Patch Set 8 : Next iteration #

Total comments: 16

Patch Set 9 : Addressed comments #

Total comments: 10

Patch Set 10 : Next iteration #

Patch Set 11 : Chrome OS compile fix #

Total comments: 18

Patch Set 12 : Addressed comments, removed waiting for DEFAULT_REQUEST_CONTEXT_AVAILABLE in GoogleURLTracker #

Patch Set 13 : Rebased to ToT #

Total comments: 12

Patch Set 14 : Addressed comments #

Total comments: 4

Patch Set 15 : Addressed comments #

Patch Set 16 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -249 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/proxy_cros_settings_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +4 lines, -17 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +1 line, -33 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +3 lines, -25 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +111 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
A chrome/browser/net/proxy_service_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/net/proxy_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +5 lines, -92 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
battre
Hi Will, would you like to have a look at the current state? Is this ...
9 years, 10 months ago (2011-02-08 17:56:32 UTC) #1
willchan no longer on Chromium
This is good progress! Thanks for taking this on, I really appreciate it. http://codereview.chromium.org/6292017/diff/5001/chrome/browser/browser_process_impl.h File ...
9 years, 10 months ago (2011-02-08 22:52:04 UTC) #2
brettw
http://codereview.chromium.org/6292017/diff/5001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6292017/diff/5001/chrome/browser/browser_main.cc#newcode1456 chrome/browser/browser_main.cc:1456: // PrefService has been initialized. Why do you need ...
9 years, 10 months ago (2011-02-11 17:42:34 UTC) #3
battre
http://codereview.chromium.org/6292017/diff/5001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6292017/diff/5001/chrome/browser/browser_main.cc#newcode1456 chrome/browser/browser_main.cc:1456: // PrefService has been initialized. On 2011/02/11 17:42:34, brettw ...
9 years, 10 months ago (2011-02-14 18:22:04 UTC) #4
willchan no longer on Chromium
http://codereview.chromium.org/6292017/diff/5001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/6292017/diff/5001/chrome/browser/io_thread.cc#newcode286 chrome/browser/io_thread.cc:286: globals_->system_proxy_service = On 2011/02/14 18:22:05, battre wrote: > On ...
9 years, 10 months ago (2011-02-15 01:05:58 UTC) #5
battre
I addressed your comments. This version is not 100% cleaned up nor have I checked ...
9 years, 10 months ago (2011-02-15 19:32:49 UTC) #6
willchan no longer on Chromium
Please note when you merge that I've refactored chrome_url_request_context.cc substantially, moving most of the code ...
9 years, 10 months ago (2011-02-16 20:02:27 UTC) #7
kuan
i focused on changes for chromeos's proxy config service, mostly nits, so lgtm for chromeos ...
9 years, 10 months ago (2011-02-18 16:29:30 UTC) #8
brettw
I'm really happy we could do without the addition to browser_main, thanks! http://codereview.chromium.org/6292017/diff/27001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc ...
9 years, 10 months ago (2011-02-21 06:22:47 UTC) #9
battre
Thanks for your reviews. This is a new version. I think several parts became significantly ...
9 years, 10 months ago (2011-02-21 17:27:57 UTC) #10
brettw
I'm glad that cleaned it up! I'm going to be gone for the next few ...
9 years, 10 months ago (2011-02-21 18:49:10 UTC) #11
battre
+mnissler due to recent changes in ChromeOS proxy configuration http://codereview.chromium.org/6549007/
9 years, 10 months ago (2011-02-21 19:25:23 UTC) #12
willchan no longer on Chromium
http://codereview.chromium.org/6292017/diff/31003/chrome/browser/chromeos/proxy_config_service_impl.h File chrome/browser/chromeos/proxy_config_service_impl.h (right): http://codereview.chromium.org/6292017/diff/31003/chrome/browser/chromeos/proxy_config_service_impl.h#newcode43 chrome/browser/chromeos/proxy_config_service_impl.h:43: // via BrowserProcess::chromeos_proxy_config_service_impl, and stored in Won't it be ...
9 years, 10 months ago (2011-02-21 23:05:49 UTC) #13
Mattias Nissler (ping if slow)
Drive by comments. Approach looks good. http://codereview.chromium.org/6292017/diff/31003/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/6292017/diff/31003/chrome/browser/io_thread.cc#newcode366 chrome/browser/io_thread.cc:366: pref_proxy_config_tracker_ = new ...
9 years, 10 months ago (2011-02-22 09:58:05 UTC) #14
battre
And the next iteration... thanks for your comments. http://codereview.chromium.org/6292017/diff/31003/chrome/browser/chromeos/proxy_config_service_impl.h File chrome/browser/chromeos/proxy_config_service_impl.h (right): http://codereview.chromium.org/6292017/diff/31003/chrome/browser/chromeos/proxy_config_service_impl.h#newcode43 chrome/browser/chromeos/proxy_config_service_impl.h:43: // ...
9 years, 9 months ago (2011-03-08 17:38:58 UTC) #15
Mattias Nissler (ping if slow)
a couple of comments. http://codereview.chromium.org/6292017/diff/38023/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): http://codereview.chromium.org/6292017/diff/38023/chrome/browser/browser_process.h#newcode93 chrome/browser/browser_process.h:93: virtual scoped_refptr<URLRequestContextGetter> system_request_context() = 0; ...
9 years, 9 months ago (2011-03-09 11:04:55 UTC) #16
battre
Thanks for your comments. http://codereview.chromium.org/6292017/diff/38023/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): http://codereview.chromium.org/6292017/diff/38023/chrome/browser/browser_process.h#newcode93 chrome/browser/browser_process.h:93: virtual scoped_refptr<URLRequestContextGetter> system_request_context() = 0; ...
9 years, 9 months ago (2011-03-09 19:24:07 UTC) #17
willchan no longer on Chromium
http://codereview.chromium.org/6292017/diff/47001/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): http://codereview.chromium.org/6292017/diff/47001/chrome/browser/browser_process.h#newcode52 chrome/browser/browser_process.h:52: #if defined(OS_CHROMEOS) Make sure to include build_config.h for this ...
9 years, 9 months ago (2011-03-10 00:40:01 UTC) #18
battre
And the next iteration. :-) http://codereview.chromium.org/6292017/diff/47001/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): http://codereview.chromium.org/6292017/diff/47001/chrome/browser/browser_process.h#newcode52 chrome/browser/browser_process.h:52: #if defined(OS_CHROMEOS) On 2011/03/10 ...
9 years, 9 months ago (2011-03-10 16:11:57 UTC) #19
willchan no longer on Chromium
LGTM Be careful with the GoogleURLTracker, since if we start needing to hit https:// URLs, ...
9 years, 9 months ago (2011-03-14 19:32:39 UTC) #20
battre
9 years, 9 months ago (2011-03-15 18:14:40 UTC) #21
Thanks for the reviews.

http://codereview.chromium.org/6292017/diff/54002/chrome/browser/io_thread.h
File chrome/browser/io_thread.h (right):

http://codereview.chromium.org/6292017/diff/54002/chrome/browser/io_thread.h#...
chrome/browser/io_thread.h:203: scoped_refptr<URLRequestContextGetter>
system_url_request_context_getter_;
On 2011/03/14 19:32:39, willchan wrote:
> Member variable ordering should be longest-lived objects first.
> 
> The system URLRequestContextGetter should live beyond the profile-specific
> ChromeURLRequestContextGetters. So, this should move ahead of those.
> 
> And the objects that the URLRequestContextGetter transitively point to (these
> next two variables) should live beyond the URLRequestContextGetter itself.
They
> should probably be after |globals_| and before |url_request_context_getters_|.

Done.

http://codereview.chromium.org/6292017/diff/54002/chrome/browser/net/proxy_se...
File chrome/browser/net/proxy_service_factory.h (right):

http://codereview.chromium.org/6292017/diff/54002/chrome/browser/net/proxy_se...
chrome/browser/net/proxy_service_factory.h:19: }  // net
On 2011/03/14 19:32:39, willchan wrote:
> namespace net

Done.

Powered by Google App Engine
This is Rietveld 408576698