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

Issue 21046008: Convert all connect code to use NetworkHandler instead of NetworkLibrary (Closed)

Created:
7 years, 4 months ago by stevenjb
Modified:
7 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, nkostylev+watch_chromium.org, ben+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

Convert all connect code to use NetworkHandler instead of NetworkLibrary * Eliminates kUseNewNetworkConnectionHandler * Converts *_config_view to NetworkStateHandler + network_connect * Migrates non Chrome/Browser dependent network_connect code to ash::network_connect. BUG=263978 R=gauravsh@chromium.org, pneubeck@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216568

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Fix connection logic + some cleanup #

Patch Set 4 : Fix VPN #

Patch Set 5 : Restore check VPN PassphraseRequred #

Total comments: 36

Patch Set 6 : Rebase #

Patch Set 7 : Feedback Round 1 #

Total comments: 115

Patch Set 8 : Feedback Round 2.1 #

Total comments: 6

Patch Set 9 : Rebase #

Patch Set 10 : Add NetworkConfigurationHandler::SetNetworkProfile #

Total comments: 22

Patch Set 11 : Rebase #

Patch Set 12 : Feedbac Round 2.2 #

Total comments: 2

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1698 lines, -1175 lines) Patch
M ash/system/chromeos/network/network_connect.h View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -2 lines 0 comments Download
M ash/system/chromeos/network/network_connect.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +215 lines, -19 lines 0 comments Download
M ash/system/chromeos/network/network_state_list_detailed_view.cc View 1 1 chunk +1 line, -5 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -2 lines 0 comments Download
M ash/system/tray/test_system_tray_delegate.h View 1 chunk +4 lines, -1 line 0 comments Download
M ash/system/tray/test_system_tray_delegate.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 3 chunks +3 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/enrollment_dialog_view.h View 1 2 3 4 5 6 7 1 chunk +18 lines, -1 line 0 comments Download
M chrome/browser/chromeos/enrollment_dialog_view.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/mobile/mobile_activator.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/network_login_observer.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/options/network_config_view.h View 1 2 3 4 5 6 7 7 chunks +16 lines, -18 lines 0 comments Download
chrome/browser/chromeos/options/network_config_view.cc View 1 2 3 4 5 6 7 7 chunks +52 lines, -51 lines 0 comments Download
M chrome/browser/chromeos/options/network_connect.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/options/network_connect.cc View 1 2 3 4 5 6 7 4 chunks +91 lines, -152 lines 0 comments Download
M chrome/browser/chromeos/options/passphrase_textfield.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/passphrase_textfield.cc View 1 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.h View 1 2 3 4 5 6 7 7 chunks +32 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +459 lines, -324 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.h View 1 2 3 4 5 6 7 6 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 3 4 5 6 7 8 9 17 chunks +246 lines, -240 lines 0 comments Download
M chrome/browser/chromeos/options/wimax_config_view.h View 1 2 3 4 5 6 7 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wimax_config_view.cc View 1 2 3 4 5 6 7 8 9 10 chunks +96 lines, -62 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 4 5 4 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -33 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +10 lines, -19 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chromeos/network/favorite_state.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chromeos/network/favorite_state.cc View 1 2 3 4 5 6 1 chunk +6 lines, -7 lines 0 comments Download
M chromeos/network/network_configuration_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/network/network_configuration_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +74 lines, -1 line 0 comments Download
M chromeos/network/network_connection_handler.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +25 lines, -3 lines 0 comments Download
M chromeos/network/network_connection_handler.cc View 1 2 3 4 5 6 10 chunks +147 lines, -86 lines 0 comments Download
M chromeos/network/network_profile_handler.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/network/network_profile_handler.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chromeos/network/network_state.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +7 lines, -6 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -27 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
stevenjb
OK, I apologize for the size of this, but I've mostly already pulled out what ...
7 years, 4 months ago (2013-07-30 01:07:49 UTC) #1
stevenjb
OK, this has been rebased with the dependent changes and tested. I also added some ...
7 years, 4 months ago (2013-08-01 23:35:42 UTC) #2
gauravsh
Here's a first batch of minor comments for everything under src/chromeos/*. I will look at ...
7 years, 4 months ago (2013-08-02 23:40:21 UTC) #3
gauravsh
For the most part I have tried to compare the old code (using NetworkLibrary) and ...
7 years, 4 months ago (2013-08-03 01:15:54 UTC) #4
stevenjb
https://chromiumcodereview.appspot.com/21046008/diff/42001/chrome/browser/chromeos/options/network_config_view.cc File chrome/browser/chromeos/options/network_config_view.cc (right): https://chromiumcodereview.appspot.com/21046008/diff/42001/chrome/browser/chromeos/options/network_config_view.cc#newcode104 chrome/browser/chromeos/options/network_config_view.cc:104: new WifiConfigView(this, "" /* service_path */, false /* show_8021x ...
7 years, 4 months ago (2013-08-06 00:32:48 UTC) #5
pneubeck (no reviews)
I got approximately to the middle of wifi_config_view.cc... in one day. https://codereview.chromium.org/21046008/diff/55001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): ...
7 years, 4 months ago (2013-08-06 15:45:19 UTC) #6
stevenjb
https://codereview.chromium.org/21046008/diff/55001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/21046008/diff/55001/ash/system/chromeos/network/network_connect.cc#newcode39 ash/system/chromeos/network/network_connect.cc:39: bool IsDirectActivatedCarrier(const std::string& carrier) { On 2013/08/06 15:45:19, pneubeck ...
7 years, 4 months ago (2013-08-06 20:23:55 UTC) #7
pneubeck (no reviews)
https://codereview.chromium.org/21046008/diff/55001/chrome/browser/chromeos/options/wifi_config_view.cc File chrome/browser/chromeos/options/wifi_config_view.cc (right): https://codereview.chromium.org/21046008/diff/55001/chrome/browser/chromeos/options/wifi_config_view.cc#newcode691 chrome/browser/chromeos/options/wifi_config_view.cc:691: if (share_network != wifi_shared) { On 2013/08/06 20:23:55, stevenjb ...
7 years, 4 months ago (2013-08-07 16:20:59 UTC) #8
stevenjb
OK, this cleans up the profile setting. I tested it and confirmed that it works ...
7 years, 4 months ago (2013-08-07 20:22:04 UTC) #9
gauravsh
Review Feedback Part 1/2 (for chromeos/network/*) https://codereview.chromium.org/21046008/diff/98001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/21046008/diff/98001/chromeos/network/network_connection_handler.cc#newcode679 chromeos/network/network_connection_handler.cc:679: void NetworkConnectionHandler::CallShillActivate( Talking ...
7 years, 4 months ago (2013-08-07 23:33:37 UTC) #10
stevenjb
https://codereview.chromium.org/21046008/diff/98001/chromeos/network/network_connection_handler.cc File chromeos/network/network_connection_handler.cc (right): https://codereview.chromium.org/21046008/diff/98001/chromeos/network/network_connection_handler.cc#newcode679 chromeos/network/network_connection_handler.cc:679: void NetworkConnectionHandler::CallShillActivate( On 2013/08/07 23:33:37, gauravsh wrote: > Talking ...
7 years, 4 months ago (2013-08-08 01:02:51 UTC) #11
gauravsh
LGTM Given our overhaul plans for a lot of the settings code, I concentrated on ...
7 years, 4 months ago (2013-08-08 01:27:23 UTC) #12
pneubeck (no reviews)
lgtm modulo the remaining comments. up to you to wait for one more review of ...
7 years, 4 months ago (2013-08-08 11:10:00 UTC) #13
stevenjb
https://codereview.chromium.org/21046008/diff/98001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/21046008/diff/98001/ash/system/chromeos/network/network_connect.cc#newcode181 ash/system/chromeos/network/network_connect.cc:181: if (!chromeos::LoginState::Get()->IsUserAuthenticated()) On 2013/08/08 11:10:00, pneubeck wrote: > I'm ...
7 years, 4 months ago (2013-08-08 19:00:56 UTC) #14
pneubeck (no reviews)
last changes seem to be fine. https://codereview.chromium.org/21046008/diff/144002/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/21046008/diff/144002/ash/system/chromeos/network/network_connect.cc#newcode181 ash/system/chromeos/network/network_connect.cc:181: if (!chromeos::LoginState::Get()->IsUserAuthenticated() && ...
7 years, 4 months ago (2013-08-08 19:20:35 UTC) #15
pneubeck (no reviews)
last changes seem to be fine. https://codereview.chromium.org/21046008/diff/144002/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/21046008/diff/144002/ash/system/chromeos/network/network_connect.cc#newcode181 ash/system/chromeos/network/network_connect.cc:181: if (!chromeos::LoginState::Get()->IsUserAuthenticated() && ...
7 years, 4 months ago (2013-08-08 19:20:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/21046008/144002
7 years, 4 months ago (2013-08-08 20:22:42 UTC) #17
stevenjb
7 years, 4 months ago (2013-08-09 04:10:25 UTC) #18
Message was sent while issue was closed.
Committed patchset #13 manually as r216568 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698