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

Issue 16398005: Extract common per-network proxy configuration functions. (Closed)

Created:
7 years, 6 months ago by pneubeck (no reviews)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Extract common per-network proxy configuration functions. - Extracted functions to get and set per-network proxy configuration from ProxyConfigServiceImpl, UIProxyConfigService and NetworkStateInformer, and moved them to a common place (chrome/browser/chromeos/net/proxy_config_handler.h). - The previous SetProxyConfig call to NetworkLibrary was extracted and instead ShillServiceClient is called directly. - Now uses NetworkStateHandler and NetworkState instead of NetworkLibrary to get the current proxy config. - This removed any dependency of proxy UI on NetworkLibrary. BUG=234982 R=mnissler@chromium.org, nkostylev@chromium.org, stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205214

Patch Set 1 : . #

Total comments: 6

Patch Set 2 : Rebased. #

Total comments: 4

Patch Set 3 : Migrated preferences_browsertest and network_state_informer, too. #

Patch Set 4 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -99 lines) Patch
A chrome/browser/chromeos/net/proxy_config_handler.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/net/proxy_config_handler.cc View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.cc View 1 2 3 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/ui_proxy_config.h View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/chromeos/ui_proxy_config.cc View 3 chunks +1 line, -21 lines 0 comments Download
M chrome/browser/chromeos/ui_proxy_config_service.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/ui_proxy_config_service.cc View 1 2 6 chunks +34 lines, -36 lines 0 comments Download
M chrome/browser/prefs/proxy_config_dictionary.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/prefs/proxy_config_dictionary.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_state_informer.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.cc View 1 2 3 chunks +17 lines, -20 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/network_handler_callbacks.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
pneubeck (no reviews)
See also the shared doc for the "roadmap".
7 years, 6 months ago (2013-06-06 15:49:23 UTC) #1
pneubeck (no reviews)
@Mattias, FYI
7 years, 6 months ago (2013-06-06 15:52:34 UTC) #2
stevenjb
One suggestion, which I am fine with skipping for now. Otherwise LGTM. https://codereview.chromium.org/16398005/diff/3001/chrome/browser/chromeos/net/proxy_config_handler.cc File chrome/browser/chromeos/net/proxy_config_handler.cc ...
7 years, 6 months ago (2013-06-06 18:21:12 UTC) #3
Mattias Nissler (ping if slow)
Didn't look very thoroughly, but what I saw looks good :) One thing to improve ...
7 years, 6 months ago (2013-06-07 09:10:14 UTC) #4
pneubeck (no reviews)
https://codereview.chromium.org/16398005/diff/3001/chrome/browser/chromeos/net/proxy_config_handler.cc File chrome/browser/chromeos/net/proxy_config_handler.cc (right): https://codereview.chromium.org/16398005/diff/3001/chrome/browser/chromeos/net/proxy_config_handler.cc#newcode23 chrome/browser/chromeos/net/proxy_config_handler.cc:23: LOG(ERROR) << "Could not clear or set ProxyConfig: " ...
7 years, 6 months ago (2013-06-07 09:46:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/16398005/17001
7 years, 6 months ago (2013-06-07 09:46:27 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/ui_proxy_config_service.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-07 09:46:31 UTC) #7
pneubeck (no reviews)
Hi Nikita, please take a look at the two remaining files: .../ui/webui/options/preferences_browsertest.cc .../ui/webui/chromeos/login/network_state_informer.cc Thanks!
7 years, 6 months ago (2013-06-07 11:30:59 UTC) #8
Nikita (slow)
lgtm
7 years, 6 months ago (2013-06-10 09:07:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/16398005/38001
7 years, 6 months ago (2013-06-10 09:40:48 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=7906
7 years, 6 months ago (2013-06-10 09:52:38 UTC) #11
Mattias Nissler (ping if slow)
LGTM
7 years, 6 months ago (2013-06-10 12:30:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/16398005/38001
7 years, 6 months ago (2013-06-10 12:31:16 UTC) #13
pneubeck (no reviews)
7 years, 6 months ago (2013-06-10 15:10:03 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 manually as r205214 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698