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

Issue 2446893008: NetworkHandler: Add ui_proxy_config_service (Closed)

Created:
4 years, 1 month ago by stevenjb
Modified:
4 years, 1 month ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, cbentzel+watch_chromium.org, michaelpg+watch-options_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos::NetworkHandler: Add ui_proxy_config_service This introduces NetworkHandler::InitializePrefServices which passes PrefService for local (device) state and the logged in user. This will get called twice, once on startup and once when the primary user logs in. NetworkHandler::InitializePrefServices currently only initializes an owned instance of UIProxyConfigService, which can then be used by any code utilizing NetworkHandler. Currently this is the (old) options UI, but it will soon include the networkingPrivate extension API code in order to support the new MD Settings UI. BUG=658015 Committed: https://crrev.com/5205952ad0b7f9df469a620b3bea96f81817015e Cr-Commit-Position: refs/heads/master@{#429528}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Rebase #

Patch Set 4 : Unittest #

Patch Set 5 : . #

Total comments: 24

Patch Set 6 : Feedback + elim bogus shill errors #

Total comments: 25

Patch Set 7 : More Feedback #

Patch Set 8 : More Feedback, reduce churn. #

Total comments: 12

Patch Set 9 : Add NetworkHandler::ShutdownPrefServices #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -85 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/net/network_pref_state_observer.h View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/net/network_pref_state_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/net/network_pref_state_observer_unittest.cc View 1 2 3 4 5 6 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/proxy_cros_settings_parser.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/proxy_cros_settings_parser.cc View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.h View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 2 3 4 7 chunks +13 lines, -20 lines 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_handler.h View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -0 lines 0 comments Download
M chromeos/network/network_handler.cc View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download
M chromeos/network/proxy/ui_proxy_config_service.h View 1 2 3 4 5 6 7 3 chunks +34 lines, -34 lines 0 comments Download
M chromeos/network/proxy/ui_proxy_config_service.cc View 1 2 3 4 5 6 7 5 chunks +47 lines, -20 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
stevenjb
jamescook@, emaxx@ for re-factoring review. michaelpg@ FYI and optional review. mnissler@ FYI and in case ...
4 years, 1 month ago (2016-11-01 22:29:51 UTC) #3
James Cook
Just FYI - we'll need to come up with some way in mustash to deal ...
4 years, 1 month ago (2016-11-01 23:02:04 UTC) #4
stevenjb
Agreed that we need to decide what to do about prefs in mustash soon. We ...
4 years, 1 month ago (2016-11-01 23:55:11 UTC) #5
James Cook
LGTM. I noticed a couple cleanup things -- sorry I missed them last time around. ...
4 years, 1 month ago (2016-11-02 01:57:33 UTC) #6
michaelpg
I don't know how much of this class is new or recently changed. So if ...
4 years, 1 month ago (2016-11-02 05:34:51 UTC) #7
michaelpg
What needs to be done for mustash? PrefService is, well, already a service, right? Is ...
4 years, 1 month ago (2016-11-02 05:44:06 UTC) #8
stevenjb
PTAL michaelpg@ - Thanks for taking the time to look at this closely. The proxy ...
4 years, 1 month ago (2016-11-02 18:03:42 UTC) #10
stevenjb
Note: In PS#8 I reduced some churn that I introduced while gaining a better understanding ...
4 years, 1 month ago (2016-11-02 18:10:17 UTC) #11
emaxx
I'm not familiar with the changed code pieces, so only did a high-level review. LGTM ...
4 years, 1 month ago (2016-11-02 18:18:05 UTC) #14
stevenjb
https://codereview.chromium.org/2446893008/diff/140001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2446893008/diff/140001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode656 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:656: // Initialize a observer to update NetworkHandler's pref based ...
4 years, 1 month ago (2016-11-02 19:47:34 UTC) #17
michaelpg
lgtm https://codereview.chromium.org/2446893008/diff/100001/chromeos/network/proxy/ui_proxy_config_service.h File chromeos/network/proxy/ui_proxy_config_service.h (right): https://codereview.chromium.org/2446893008/diff/100001/chromeos/network/proxy/ui_proxy_config_service.h#newcode5 chromeos/network/proxy/ui_proxy_config_service.h:5: #ifndef CHROMEOS_NETWORK_PROXY_UI_PROXY_CONFIG_SERVICE_H_ On 2016/11/02 18:03:41, stevenjb wrote: > ...
4 years, 1 month ago (2016-11-02 23:39:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446893008/160001
4 years, 1 month ago (2016-11-03 00:35:56 UTC) #21
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 1 month ago (2016-11-03 05:17:23 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 05:19:10 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5205952ad0b7f9df469a620b3bea96f81817015e
Cr-Commit-Position: refs/heads/master@{#429528}

Powered by Google App Engine
This is Rietveld 408576698