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

Issue 6597070: Allow ProxyConfigService to report "no configuration set" (Closed)

Created:
9 years, 9 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
Reviewers:
eroman, kuan
CC:
chromium-reviews, cbentzel+watch_chromium.org, amit, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Allow ProxyConfigService to report "no configuration set" Introduce a ConfigAvailability enum such that ProxyConfigService is able to return configuration status at a finer granularity level. This allows to fall back to default values (potentially configured through policy) if the system service doesn't have configuration. BUG=none TEST=unit tests, recommended proxy policy works on CrOS. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81085

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : fix build #

Patch Set 4 : Move availability stuff into ProxyConfigService. #

Patch Set 5 : Fixes. #

Patch Set 6 : Cosmetics. #

Total comments: 2

Patch Set 7 : Address comment #

Total comments: 27

Patch Set 8 : Address Eric's comments. #

Patch Set 9 : PollingProxyConfigService adjustments #

Total comments: 1

Patch Set 10 : Updates #

Patch Set 11 : fix fallback #

Total comments: 10

Patch Set 12 : Address Eric's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -228 lines) Patch
M chrome/browser/chromeos/proxy_config_service.h View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +42 lines, -48 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl_unittest.cc View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +32 lines, -15 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +63 lines, -27 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +93 lines, -24 lines 0 comments Download
M chrome/browser/net/resolve_proxy_msg_helper_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/testing_pref_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M chrome/test/testing_pref_service.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -3 lines 0 comments Download
M net/proxy/polling_proxy_config_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/polling_proxy_config_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -3 lines 0 comments Download
M net/proxy/proxy_config_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -6 lines 0 comments Download
M net/proxy/proxy_config_service_fixed.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_config_service_fixed.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M net/proxy/proxy_config_service_linux.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 2 3 4 5 6 7 8 9 6 chunks +12 lines, -8 lines 0 comments Download
M net/proxy/proxy_config_service_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 10 59 chunks +113 lines, -30 lines 0 comments Download
M net/proxy/proxy_config_service_mac.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_config_service_mac.cc View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -3 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +40 lines, -19 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 2 3 3 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mattias Nissler (ping if slow)
Eric, here is a stab at the CL I chatted with you about last week. ...
9 years, 9 months ago (2011-03-01 15:19:29 UTC) #1
eroman
Hi Mattias, Thanks for experimenting with that interface change per our earlier discussion. On seeing ...
9 years, 9 months ago (2011-03-04 05:25:08 UTC) #2
Mattias Nissler (ping if slow)
Eric, thanks for your input. I'm sorry to make progress on this only slowly (busy ...
9 years, 9 months ago (2011-03-10 19:57:00 UTC) #3
kuan
i looked at the chromeos/proxy_config*.* files; just 1 nit, so lgtm. http://codereview.chromium.org/6597070/diff/19002/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): ...
9 years, 9 months ago (2011-03-10 22:59:04 UTC) #4
Mattias Nissler (ping if slow)
Eric: Ping http://codereview.chromium.org/6597070/diff/19002/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): http://codereview.chromium.org/6597070/diff/19002/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode423 chrome/browser/chromeos/proxy_config_service_impl.cc:423: config_availability_ = net::ProxyConfigService::CONFIG_VALID; On 2011/03/10 22:59:05, kuan ...
9 years, 9 months ago (2011-03-15 12:38:32 UTC) #5
eroman
Hey I'm back :) Sorry for the delay, been getting p0wned by top crashes on ...
9 years, 9 months ago (2011-03-16 01:29:59 UTC) #6
Mattias Nissler (ping if slow)
Here's an updated version with Eric's comments addressed. http://codereview.chromium.org/6597070/diff/26001/net/proxy/polling_proxy_config_service.cc File net/proxy/polling_proxy_config_service.cc (right): http://codereview.chromium.org/6597070/diff/26001/net/proxy/polling_proxy_config_service.cc#newcode100 net/proxy/polling_proxy_config_service.cc:100: ProxyConfigService::ConfigAvailability ...
9 years, 9 months ago (2011-03-16 17:40:00 UTC) #7
Mattias Nissler (ping if slow)
Eric: Ping On 2011/03/16 17:40:00, Mattias Nissler wrote: > Here's an updated version with Eric's ...
9 years, 9 months ago (2011-03-22 17:29:36 UTC) #8
eroman
sorry, was out sick past few days, will take another look today.
9 years, 9 months ago (2011-03-22 18:40:53 UTC) #9
eroman
Did you upload the changes? I am still seeing the same content as before. Thanks. ...
9 years, 9 months ago (2011-03-26 00:50:30 UTC) #10
Mattias Nissler (ping if slow)
Sorry, it seems I have accidentally clobbered the changes I've made in my Linux tree ...
9 years, 8 months ago (2011-03-30 18:23:30 UTC) #11
eroman
LGTM with following comments addressed. http://codereview.chromium.org/6597070/diff/44002/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): http://codereview.chromium.org/6597070/diff/44002/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode412 chrome/browser/chromeos/proxy_config_service_impl.cc:412: config_availability_ = net::ProxyConfigService::CONFIG_UNSET; Per ...
9 years, 8 months ago (2011-03-30 21:42:31 UTC) #12
Mattias Nissler (ping if slow)
Two quick replies. I agree with the other comments you made and will address them ...
9 years, 8 months ago (2011-03-30 22:05:47 UTC) #13
Mattias Nissler (ping if slow)
Address remaining comments. Eric, are you OK with my answers regarding CONFIG_UNSET in the ChromeOS ...
9 years, 8 months ago (2011-03-31 14:04:47 UTC) #14
Mattias Nissler (ping if slow)
Ping On 2011/03/31 14:04:47, Mattias Nissler wrote: > Address remaining comments. Eric, are you OK ...
9 years, 8 months ago (2011-04-08 15:07:01 UTC) #15
eroman
9 years, 8 months ago (2011-04-08 17:42:50 UTC) #16
Yep sounds good.

(In fact I had assumed you already checked in, sorry didn't realize you were
waiting on me!)

LGTM

Powered by Google App Engine
This is Rietveld 408576698