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

Issue 8467012: Refactor proxy handling for ChromeOS to not go through the CrosSettings interface. (Closed)

Created:
9 years, 1 month ago by pastarmovj
Modified:
9 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, kkania, robertshield, Paweł Hajdan Jr., stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Refactor proxy handling for ChromeOS to not go through the CrosSettings interface. The ProxyCrosSettingsProvider was not a real SignedSettings handler since the network manager was introduced and was only used to parse the data for the UI. However this does not go well with the unification of the SignedSettings handling and belongs to the presentation layer. Therefore we extract the parsing functionality in a helper class and move some of the logic up the UI handling layer. BUG=chromium-os:14054 TEST=Proxy UI should still be working (automation tests). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109886

Patch Set 1 #

Total comments: 3

Patch Set 2 : Centralized the proxy change notification. #

Total comments: 51

Patch Set 3 : Addressed comments. #

Total comments: 30

Patch Set 4 : Addressed comments. #

Patch Set 5 : One file slipped away. #

Total comments: 10

Patch Set 6 : Addressed comments. #

Total comments: 6

Patch Set 7 : Fixed the nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -669 lines) Patch
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 1 2 6 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.h View 1 2 3 4 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.cc View 1 2 3 4 5 6 3 chunks +48 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/proxy_cros_settings_parser.h View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/proxy_cros_settings_parser.cc View 1 2 10 chunks +96 lines, -101 lines 0 comments Download
D chrome/browser/chromeos/proxy_cros_settings_provider.h View 1 2 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/chromeos/proxy_cros_settings_provider.cc View 1 2 1 chunk +0 lines, -393 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc View 1 2 3 3 chunks +7 lines, -19 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 2 3 4 5 7 chunks +71 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 2 3 4 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/proxy_handler.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/proxy_handler.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 11 chunks +23 lines, -22 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
pastarmovj
Please take a look at this refactoring of proxy_cros_settings_provider.*. I also used the occasion to ...
9 years, 1 month ago (2011-11-07 12:12:07 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8467012/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): http://codereview.chromium.org/8467012/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode79 chrome/browser/automation/testing_automation_provider_chromeos.cc:79: browser->profile(), setting_path, &value)) { +4 indentation http://codereview.chromium.org/8467012/diff/1/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc File chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc ...
9 years, 1 month ago (2011-11-08 09:25:21 UTC) #2
kuan
i wld like to clarify that ProxyCrosSettingsProvider was NEVER meant to be a SignedSettings provider; ...
9 years, 1 month ago (2011-11-08 14:45:24 UTC) #3
pastarmovj
Thank you both for the review. I tried to address all your comments. http://codereview.chromium.org/8467012/diff/3001/chrome/browser/automation/testing_automation_provider_chromeos.cc File ...
9 years, 1 month ago (2011-11-09 17:51:53 UTC) #4
kuan
http://codereview.chromium.org/8467012/diff/11001/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): http://codereview.chromium.org/8467012/diff/11001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode476 chrome/browser/chromeos/proxy_config_service_impl.cc:476: for (;iter != callbacks_.end(); ++iter) { s/;iter/; iter/ http://codereview.chromium.org/8467012/diff/11001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode479 ...
9 years, 1 month ago (2011-11-10 14:27:25 UTC) #5
pastarmovj
Thanks for looking into it again! I have addressed all the nits and try jobs ...
9 years, 1 month ago (2011-11-10 16:08:25 UTC) #6
kuan
lgtm
9 years, 1 month ago (2011-11-11 12:08:15 UTC) #7
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8467012/diff/22001/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): http://codereview.chromium.org/8467012/diff/22001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode479 chrome/browser/chromeos/proxy_config_service_impl.cc:479: } std::find http://codereview.chromium.org/8467012/diff/22001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode491 chrome/browser/chromeos/proxy_config_service_impl.cc:491: } std::find http://codereview.chromium.org/8467012/diff/22001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode789 chrome/browser/chromeos/proxy_config_service_impl.cc:789: iter ...
9 years, 1 month ago (2011-11-11 12:10:45 UTC) #8
pastarmovj
Addressed your comments http://codereview.chromium.org/8467012/diff/22001/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): http://codereview.chromium.org/8467012/diff/22001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode479 chrome/browser/chromeos/proxy_config_service_impl.cc:479: } On 2011/11/11 12:10:46, Mattias Nissler ...
9 years, 1 month ago (2011-11-11 15:17:31 UTC) #9
Mattias Nissler (ping if slow)
lgtm http://codereview.chromium.org/8467012/diff/34001/chrome/browser/chromeos/proxy_config_service_impl.cc File chrome/browser/chromeos/proxy_config_service_impl.cc (right): http://codereview.chromium.org/8467012/diff/34001/chrome/browser/chromeos/proxy_config_service_impl.cc#newcode45 chrome/browser/chromeos/proxy_config_service_impl.cc:45: // Tiny stl helper function to allow using ...
9 years, 1 month ago (2011-11-14 08:35:44 UTC) #10
pastarmovj
Fixed the nits. Trybots seem fine and I did the manual test that Kuan proposed ...
9 years, 1 month ago (2011-11-14 14:20:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/8467012/26006
9 years, 1 month ago (2011-11-14 14:20:57 UTC) #12
commit-bot: I haz the power
9 years, 1 month ago (2011-11-14 14:21:05 UTC) #13
Presubmit check for 8467012-26006 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
New code should not use wstrings.  If you are calling an API that accepts a
wstring, fix the API.
   
chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc:184

Presubmit checks took 2.4s to calculate.

Powered by Google App Engine
This is Rietveld 408576698