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

Issue 14566009: Add NetworkConnectionHandler class (Closed)

Created:
7 years, 7 months ago by stevenjb
Modified:
7 years, 7 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, Aaron Boodman, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add NetworkConnectionHandler class This moves NetworkConfigurationHandler::Connect -> NetworkConnectionHandler::ConnectToNetwork and adds error handling and certificate checking. Depends on https://codereview.chromium.org/14522013/ Test with --use-new-network-configuration-handlers BUG=235243 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199893

Patch Set 1 #

Patch Set 2 : Modify Shill stubs #

Total comments: 61

Patch Set 3 : Address feedback, remove configuration. #

Total comments: 4

Patch Set 4 : Rebase #

Total comments: 10

Patch Set 5 : Respond to feedback #

Total comments: 2

Patch Set 6 : Fix certificate test #

Patch Set 7 : Rebase #

Patch Set 8 : Fix ExtensionNetworkingPrivateApiTest #

Patch Set 9 : Feedback from gauravsh #

Total comments: 16

Patch Set 10 : Address feedback #

Total comments: 1

Patch Set 11 : Rebase #

Patch Set 12 : Revert Associating Stub change for test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+957 lines, -512 lines) Patch
M ash/system/chromeos/network/network_state_list_detailed_view.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/chromeos/network/network_state_list_detailed_view.cc View 3 chunks +21 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
D chrome/browser/chromeos/cros/certificate_pattern_matcher.h View 1 chunk +0 lines, -25 lines 0 comments Download
D chrome/browser/chromeos/cros/certificate_pattern_matcher.cc View 1 chunk +0 lines, -193 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/networking_private_api.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking/test.js View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/shill_manager_client.h View 1 2 3 2 chunks +12 lines, -7 lines 0 comments Download
M chromeos/dbus/shill_manager_client_stub.h View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M chromeos/dbus/shill_manager_client_stub.cc View 1 2 3 4 5 6 7 8 9 8 chunks +68 lines, -67 lines 0 comments Download
M chromeos/dbus/shill_service_client_stub.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/shill_service_client_stub.cc View 1 2 10 11 8 chunks +23 lines, -14 lines 0 comments Download
M chromeos/network/cert_loader.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/cert_loader.cc View 1 2 3 4 5 6 7 5 chunks +37 lines, -2 lines 0 comments Download
A + chromeos/network/certificate_pattern_matcher.h View 2 chunks +9 lines, -4 lines 0 comments Download
A + chromeos/network/certificate_pattern_matcher.cc View 3 chunks +5 lines, -1 line 0 comments Download
M chromeos/network/managed_network_configuration_handler.h View 1 2 3 3 chunks +7 lines, -14 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler.cc View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -40 lines 0 comments Download
M chromeos/network/network_configuration_handler.h View 1 chunk +0 lines, -13 lines 0 comments Download
M chromeos/network/network_configuration_handler.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M chromeos/network/network_configuration_handler_unittest.cc View 3 chunks +1 line, -41 lines 0 comments Download
A chromeos/network/network_connection_handler.h View 1 2 3 4 5 6 7 8 1 chunk +141 lines, -0 lines 0 comments Download
A chromeos/network/network_connection_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +309 lines, -0 lines 0 comments Download
A chromeos/network/network_connection_handler_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +210 lines, -0 lines 0 comments Download
M chromeos/network/network_handler_callbacks.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_state.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -17 lines 0 comments Download
M chromeos/network/network_state_handler_unittest.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M chromeos/network/network_ui_data.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -9 lines 0 comments Download
M chromeos/network/network_ui_data.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/network_ui_data_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
stevenjb
OK, here it is, NetworkConnectionHandler. I'm not trying to get this into M28 (on the ...
7 years, 7 months ago (2013-05-03 20:42:42 UTC) #1
pneubeck (no reviews)
As you can see from my comments, I'm not overly happy with the structure yet. ...
7 years, 7 months ago (2013-05-07 08:46:39 UTC) #2
stevenjb
I am fine with switching to calling MangedNetworkConfigurationHandler. I am also OK with eliminating configuration ...
7 years, 7 months ago (2013-05-08 01:57:22 UTC) #3
pneubeck (no reviews)
I'm fine with cleanups in follow-up patches. Please mention in the commit message that you ...
7 years, 7 months ago (2013-05-08 08:07:46 UTC) #4
stevenjb
https://codereview.chromium.org/14566009/diff/2001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/14566009/diff/2001/chromeos/network/network_connection_handler.cc#newcode166 chromeos/network/network_connection_handler.cc:166: std::string error_message = "Connect Error: " + error_name; On ...
7 years, 7 months ago (2013-05-08 18:48:00 UTC) #5
gauravsh
https://codereview.chromium.org/14566009/diff/47001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/14566009/diff/47001/chromeos/network/network_connection_handler.cc#newcode38 chromeos/network/network_connection_handler.cc:38: bool NetworkMayNeedCredentials(const NetworkState* network) { Please add a comment ...
7 years, 7 months ago (2013-05-08 19:22:04 UTC) #6
stevenjb
https://codereview.chromium.org/14566009/diff/47001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/14566009/diff/47001/chromeos/network/network_connection_handler.cc#newcode38 chromeos/network/network_connection_handler.cc:38: bool NetworkMayNeedCredentials(const NetworkState* network) { On 2013/05/08 19:22:04, gauravsh ...
7 years, 7 months ago (2013-05-09 00:13:00 UTC) #7
gauravsh
https://codereview.chromium.org/14566009/diff/47001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/14566009/diff/47001/chromeos/network/network_connection_handler.cc#newcode38 chromeos/network/network_connection_handler.cc:38: bool NetworkMayNeedCredentials(const NetworkState* network) { On 2013/05/09 00:13:00, stevenjb ...
7 years, 7 months ago (2013-05-09 18:22:55 UTC) #8
pneubeck (no reviews)
lgtm with some minor issues. https://codereview.chromium.org/14566009/diff/2001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/14566009/diff/2001/chromeos/network/network_connection_handler.cc#newcode189 chromeos/network/network_connection_handler.cc:189: void NetworkConnectionHandler::GetPropertiesCallback( On 2013/05/08 ...
7 years, 7 months ago (2013-05-13 09:29:35 UTC) #9
stevenjb
https://codereview.chromium.org/14566009/diff/65001/chromeos/dbus/shill_manager_client_stub.cc File chromeos/dbus/shill_manager_client_stub.cc (right): https://codereview.chromium.org/14566009/diff/65001/chromeos/dbus/shill_manager_client_stub.cc#newcode448 chromeos/dbus/shill_manager_client_stub.cc:448: GetListProperty(flimflam::kServiceWatchListProperty)->Remove( On 2013/05/13 09:29:36, pneubeck wrote: > please drop ...
7 years, 7 months ago (2013-05-13 20:25:51 UTC) #10
Greg Spencer (Chromium)
LGTM https://codereview.chromium.org/14566009/diff/80001/chromeos/network/cert_loader.cc File chromeos/network/cert_loader.cc (right): https://codereview.chromium.org/14566009/diff/80001/chromeos/network/cert_loader.cc#newcode249 chromeos/network/cert_loader.cc:249: LOG(WARNING) << "Re-Requesting Certificates."; Nit: Does this really ...
7 years, 7 months ago (2013-05-13 20:28:52 UTC) #11
stevenjb
https://codereview.chromium.org/14566009/diff/65001/chromeos/dbus/shill_service_client_stub.cc File chromeos/dbus/shill_service_client_stub.cc (right): https://codereview.chromium.org/14566009/diff/65001/chromeos/dbus/shill_service_client_stub.cc#newcode193 chromeos/dbus/shill_service_client_stub.cc:193: chromeos::switches::kEnableStubInteractive)) { On 2013/05/13 20:25:52, stevenjb (chromium) wrote: > ...
7 years, 7 months ago (2013-05-14 00:07:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14566009/88001
7 years, 7 months ago (2013-05-14 00:07:40 UTC) #13
commit-bot: I haz the power
Change committed as 199893
7 years, 7 months ago (2013-05-14 04:37:58 UTC) #14
pneubeck (no reviews)
7 years, 7 months ago (2013-05-14 14:27:33 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/14566009/diff/65001/chromeos/dbus/shill_servi...
File chromeos/dbus/shill_service_client_stub.cc (right):

https://codereview.chromium.org/14566009/diff/65001/chromeos/dbus/shill_servi...
chromeos/dbus/shill_service_client_stub.cc:193:
chromeos::switches::kEnableStubInteractive)) {
On 2013/05/14 00:07:08, stevenjb (chromium) wrote:
> On 2013/05/13 20:25:52, stevenjb (chromium) wrote:
> > On 2013/05/13 09:29:36, pneubeck wrote:
> > > for tests: shouldn't we still emit the associating state, even if we
> > immediately
> > > switch to online?
> > Fair. Done.
> > 
> Oops, I recall why I didn't do this now; it affects the predictability of JS
> tests (onNetworksChangedEventConnect).

The right solution is to behave like Shill (whatever it does which is likely
depending on the network type).

At least drop a comment, why you omit it here.

Powered by Google App Engine
This is Rietveld 408576698