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

Issue 10912132: Move ProxyConfigService construction onto the IO thread. (Closed)

Created:
8 years, 3 months ago by pauljensen
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, szym
Visibility:
Public.

Description

Move ProxyConfigService construction onto the IO thread. BUG=146421

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Fix Android build failure #

Patch Set 7 : Fix more Android build failures #

Patch Set 8 : Fix how we call SetChromeProxyConfigService #

Patch Set 9 : sync #

Patch Set 10 : Fix io_thread.cc problems #

Patch Set 11 : #

Patch Set 12 : Rework ProxyConfigServiceLinux shutdown for KDE #

Patch Set 13 : Cleanup and delint #

Patch Set 14 : More delint #

Patch Set 15 : Tiny fix for get_server_time #

Total comments: 1

Patch Set 16 : Fix shell shutdown #

Patch Set 17 : Fix service shutdown #

Patch Set 18 : Fix ProxyConfigServiceAndroid contructor argument order #

Patch Set 19 : Fix comments #

Patch Set 20 : Small fix #

Patch Set 21 : Cleanup #

Patch Set 22 : Cleanup #

Patch Set 23 : Adjust comments #

Total comments: 7

Patch Set 24 : Avoid double-shutdown in services #

Total comments: 5

Patch Set 25 : Address digit1's comments #

Patch Set 26 : Remove extra blank line #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -237 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -4 lines 2 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_tracker_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_tracker_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/net/proxy_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -4 lines 2 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 15 16 17 18 19 20 21 22 4 chunks +23 lines, -6 lines 0 comments Download
M chrome/service/net/service_url_request_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +3 lines, -1 line 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +17 lines, -11 lines 0 comments Download
M chrome/service/service_process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +5 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/shell_resource_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_resource_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/shell_url_request_context_getter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +10 lines, -12 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +9 lines, -0 lines 0 comments Download
M net/proxy/proxy_config_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 1 comment Download
M net/proxy/proxy_config_service_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +8 lines, -6 lines 0 comments Download
M net/proxy/proxy_config_service_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 7 chunks +29 lines, -43 lines 0 comments Download
M net/proxy/proxy_config_service_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 9 chunks +33 lines, -22 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 24 chunks +73 lines, -48 lines 0 comments Download
M net/proxy/proxy_config_service_linux_unittest.cc View 4 chunks +24 lines, -9 lines 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -1 line 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +12 lines, -22 lines 0 comments Download
M net/tools/get_server_time/get_server_time.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +13 lines, -8 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 3 chunks +8 lines, -5 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 3 chunks +14 lines, -14 lines 0 comments Download
M net/url_request/url_request_context_builder_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Philippe
Thanks Paul. I tested your change on Android in our downstream repository. With the adjustment ...
8 years, 2 months ago (2012-10-18 09:22:38 UTC) #1
pauljensen
Will, I finally think I've finished off this CL. I'm adding you to the reviewers ...
8 years, 2 months ago (2012-10-19 02:20:43 UTC) #2
willchan no longer on Chromium
Nice. I'm going to send this review to Matt, but I'll have a look myself ...
8 years, 2 months ago (2012-10-19 05:36:19 UTC) #3
Philippe
I'm adding Ryan too for ProxyConfigServiceAndroid. http://codereview.chromium.org/10912132/diff/65039/net/proxy/proxy_config_service.h File net/proxy/proxy_config_service.h (right): http://codereview.chromium.org/10912132/diff/65039/net/proxy/proxy_config_service.h#newcode64 net/proxy/proxy_config_service.h:64: Nit: extra blank ...
8 years, 2 months ago (2012-10-19 09:35:25 UTC) #4
digit1
http://codereview.chromium.org/10912132/diff/69015/chrome/service/net/service_url_request_context.h File chrome/service/net/service_url_request_context.h (right): http://codereview.chromium.org/10912132/diff/69015/chrome/service/net/service_url_request_context.h#newcode73 chrome/service/net/service_url_request_context.h:73: scoped_refptr<base::SingleThreadTaskRunner> glib_task_runner_; I believe that mentioning glib in source ...
8 years, 2 months ago (2012-10-19 10:32:46 UTC) #5
pauljensen
I addressed digit1 and pliard's comments. http://codereview.chromium.org/10912132/diff/65039/net/proxy/proxy_config_service_android.cc File net/proxy/proxy_config_service_android.cc (right): http://codereview.chromium.org/10912132/diff/65039/net/proxy/proxy_config_service_android.cc#newcode192 net/proxy/proxy_config_service_android.cc:192: void StartTearDown() { ...
8 years, 2 months ago (2012-10-19 16:00:13 UTC) #6
willchan no longer on Chromium
+eroman Eric will be interested in the ProxyConfigService stuff. Or maybe he's hoping he doesn't ...
8 years, 2 months ago (2012-10-19 16:28:02 UTC) #7
Philippe
http://codereview.chromium.org/10912132/diff/65039/net/proxy/proxy_config_service_android.cc File net/proxy/proxy_config_service_android.cc (right): http://codereview.chromium.org/10912132/diff/65039/net/proxy/proxy_config_service_android.cc#newcode192 net/proxy/proxy_config_service_android.cc:192: void StartTearDown() { On 2012/10/19 16:00:13, pauljensen wrote: > ...
8 years, 2 months ago (2012-10-19 16:34:12 UTC) #8
Ryan Sleevi
So I only looked at the net/ code, and I think I've tried to capture ...
8 years, 2 months ago (2012-10-19 17:56:43 UTC) #9
willchan no longer on Chromium
http://codereview.chromium.org/10912132/diff/88001/chrome/browser/io_thread.h File chrome/browser/io_thread.h (right): http://codereview.chromium.org/10912132/diff/88001/chrome/browser/io_thread.h#newcode147 chrome/browser/io_thread.h:147: // Called on the UI thread to indicate now ...
8 years, 2 months ago (2012-10-19 18:06:36 UTC) #10
eroman
I have only skimmed through this change, but I don't generally like moving the multithreaded ...
8 years, 2 months ago (2012-10-19 18:53:27 UTC) #11
Ryan Sleevi
On Fri, Oct 19, 2012 at 11:53 AM, <eroman@chromium.org> wrote: > I have only skimmed ...
8 years, 2 months ago (2012-10-19 18:57:16 UTC) #12
pauljensen
The construction and destruction semantics for ProxyConfigServiceLinux aren't simple and probably never will be. I ...
8 years, 2 months ago (2012-10-19 22:34:28 UTC) #13
szym
I second eroman's suggestion to decouple ProxyConfigService from the lifetime of the network thread, but ...
8 years, 2 months ago (2012-10-20 18:35:54 UTC) #14
Ryan Sleevi
Using a WorkerPool, rather than the explicit TaskRunner/MessageLoop system of today, seems like needless overhead ...
8 years, 2 months ago (2012-10-20 19:15:53 UTC) #15
digit1
7 years, 8 months ago (2013-04-26 14:14:03 UTC) #16
Hello, is this CL still needed? The latest patch is 6 months old so I assume
not. If so, could you close it? Thanks.

Powered by Google App Engine
This is Rietveld 408576698