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

Issue 10882010: Add iOS support to ProxyService (Closed)

Created:
8 years, 4 months ago by droger
Modified:
8 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, stuartmorgan
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add iOS support to ProxyService The iOS implementation is similar to the Mac implementation with the following differences: - the SCDynamicStore API does not exist on iOS, thus configuration changes are only detected by polling - several features are not supported. BUG=145954 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154758

Patch Set 1 #

Patch Set 2 : Fix compile issue on the Mac #

Patch Set 3 : Added some test to the gyp file #

Patch Set 4 : Cleanup #

Total comments: 1

Patch Set 5 : Copyright notice #

Patch Set 6 : Added related files from chrome/browser/net #

Total comments: 3

Patch Set 7 : Applied wtc's comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -4 lines) Patch
M chrome/browser/net/pref_proxy_config_tracker_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/net/proxy_service_factory.cc View 1 2 3 4 5 4 chunks +8 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 5 chunks +9 lines, -3 lines 0 comments Download
A net/proxy/proxy_config_service_ios.h View 1 chunk +34 lines, -0 lines 1 comment Download
A net/proxy/proxy_config_service_ios.cc View 1 2 3 4 1 chunk +113 lines, -0 lines 2 comments Download
M net/proxy/proxy_resolver_mac.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M net/proxy/proxy_service.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
droger
8 years, 4 months ago (2012-08-23 15:59:22 UTC) #1
eroman
I don't see proxy_resolver_mac.cc used anywhere, is this needed? Even Mac Chrome doesn't use this, ...
8 years, 4 months ago (2012-08-23 17:38:01 UTC) #2
droger
On 2012/08/23 17:38:01, eroman wrote: > I don't see proxy_resolver_mac.cc used anywhere, is this needed? ...
8 years, 4 months ago (2012-08-24 07:45:49 UTC) #3
droger
Please ignore my previous message. I added added the related files from chrome/browser/net. I hope ...
8 years, 4 months ago (2012-08-24 08:10:04 UTC) #4
droger
ping
8 years, 3 months ago (2012-08-28 07:49:56 UTC) #5
droger
Adding wtc, because this is 6 days old already.
8 years, 3 months ago (2012-08-30 13:32:24 UTC) #6
cbentzel
Quick comments: - Eric was sheriff past two days, so hopefully should be more freed ...
8 years, 3 months ago (2012-08-30 17:08:47 UTC) #7
wtc
Patch set 6 LGTM. I think I wrote some of the code in this CL ...
8 years, 3 months ago (2012-08-30 18:52:01 UTC) #8
droger
On 2012/08/30 17:08:47, cbentzel wrote: > - I'm surprised that you are even creating a ...
8 years, 3 months ago (2012-08-31 15:32:14 UTC) #9
eroman
lgtm. apologies for the slow response http://codereview.chromium.org/10882010/diff/13001/chrome/browser/net/pref_proxy_config_tracker_impl.cc File chrome/browser/net/pref_proxy_config_tracker_impl.cc (right): http://codereview.chromium.org/10882010/diff/13001/chrome/browser/net/pref_proxy_config_tracker_impl.cc#newcode318 chrome/browser/net/pref_proxy_config_tracker_impl.cc:318: return ProxyPrefs::CONFIG_UNSET; Why ...
8 years, 3 months ago (2012-08-31 20:02:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/10882010/18001
8 years, 3 months ago (2012-09-04 11:30:35 UTC) #11
commit-bot: I haz the power
Change committed as 154758
8 years, 3 months ago (2012-09-04 15:51:24 UTC) #12
Ryan Sleevi
https://chromiumcodereview.appspot.com/10882010/diff/18001/net/proxy/proxy_config_service_ios.cc File net/proxy/proxy_config_service_ios.cc (right): https://chromiumcodereview.appspot.com/10882010/diff/18001/net/proxy/proxy_config_service_ios.cc#newcode106 net/proxy/proxy_config_service_ios.cc:106: DCHECK(io_thread_task_runner_); You don't actually seem to use this, other ...
8 years, 3 months ago (2012-09-05 02:59:21 UTC) #13
droger
8 years, 3 months ago (2012-09-05 14:25:24 UTC) #14
Thank you for the comments.

I'll submit a follow up CL to address the last comments.

http://codereview.chromium.org/10882010/diff/18001/net/proxy/proxy_config_ser...
File net/proxy/proxy_config_service_ios.cc (right):

http://codereview.chromium.org/10882010/diff/18001/net/proxy/proxy_config_ser...
net/proxy/proxy_config_service_ios.cc:106: DCHECK(io_thread_task_runner_);
On 2012/09/05 02:59:21, Ryan Sleevi wrote:
> You don't actually seem to use this, other than to DCHECK that it's destructed
> on the right thread.
> 
> Was that intentional? It would seem like if so, it should be an parameter on
the
> PollingProxyConfigService, since that's the one that (presumably) has thread
> affinity.

This is not intentional. It has been copy-pasted incorrectly from
ProxyConfigServiceMac.

Powered by Google App Engine
This is Rietveld 408576698