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

Issue 22611005: Switch over MobileActivator to use Network*Handler (Closed)

Created:
7 years, 4 months ago by gauravsh
Modified:
7 years, 3 months ago
Reviewers:
xiyuan, armansito, stevenjb
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Switch over MobileActivator to use Network*Handler Add a NetworkActivationHandler for handling cellular activation calls to Shill. BUG=188753 TEST=tested Verizon LTE (on link) and Verizon 3g (on Lumpy) activation Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220463

Patch Set 1 #

Patch Set 2 : add async versions to NetworkActivationHandler #

Patch Set 3 : add activation handler files #

Total comments: 62

Patch Set 4 : address feedback from arman and steven #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : rebase + remove NetworkManagerChanged #

Total comments: 1

Patch Set 7 : rebase + fix post_method() comparison #

Patch Set 8 : fix state machine + unit tests in the new world #

Total comments: 8

Patch Set 9 : keep track of device path + fix null network in callback #

Total comments: 10

Patch Set 10 : address nits #

Patch Set 11 : ws #

Unified diffs Side-by-side diffs Delta from patch set Stats (+659 lines, -445 lines) Patch
M ash/system/chromeos/network/network_connect.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/mobile/mobile_activator.h View 1 2 3 4 5 6 7 8 9 9 chunks +65 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/mobile/mobile_activator.cc View 1 2 3 4 5 6 7 8 9 10 30 chunks +277 lines, -240 lines 0 comments Download
M chrome/browser/chromeos/mobile/mobile_activator_unittest.cc View 1 2 3 4 5 6 7 9 chunks +75 lines, -49 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc View 1 2 3 5 chunks +1 line, -18 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 1 2 3 4 5 6 13 chunks +63 lines, -45 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A chromeos/network/network_activation_handler.h View 1 2 3 1 chunk +78 lines, -0 lines 0 comments Download
A chromeos/network/network_activation_handler.cc View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
M chromeos/network/network_connection_handler.h View 1 2 3 4 5 2 chunks +0 lines, -22 lines 0 comments Download
M chromeos/network/network_connection_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -40 lines 0 comments Download
M chromeos/network/network_handler.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/network_handler.cc View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M chromeos/network/network_state.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_state_handler.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
gauravsh
I'll be testing this over the next few days but getting this out now to ...
7 years, 4 months ago (2013-08-13 23:45:28 UTC) #1
armansito
Just a few nits. Let me know if I can help test this in any ...
7 years, 4 months ago (2013-08-14 00:49:51 UTC) #2
stevenjb
https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode29 chrome/browser/chromeos/mobile/mobile_activator.cc:29: #include "chrome/browser/chromeos/cros/network_library.h" Remove https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode31 chrome/browser/chromeos/mobile/mobile_activator.cc:31: #include "chromeos/network/cros_network_functions.h" We shouldn't ...
7 years, 4 months ago (2013-08-14 02:28:30 UTC) #3
gauravsh
https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode29 chrome/browser/chromeos/mobile/mobile_activator.cc:29: #include "chrome/browser/chromeos/cros/network_library.h" On 2013/08/14 02:28:31, stevenjb (chromium) wrote: > ...
7 years, 4 months ago (2013-08-14 21:42:29 UTC) #4
stevenjb
https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode198 chrome/browser/chromeos/mobile/mobile_activator.cc:198: void MobileActivator::NetworkManagerChanged() { On 2013/08/14 21:42:29, gauravsh wrote: > ...
7 years, 4 months ago (2013-08-14 21:58:35 UTC) #5
armansito
https://codereview.chromium.org/22611005/diff/12001/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc File chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc (right): https://codereview.chromium.org/22611005/diff/12001/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc#newcode411 chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc:411: const NetworkState* network = nsh->GetNetworkState(path.substr(1)); On 2013/08/14 21:58:35, stevenjb ...
7 years, 4 months ago (2013-08-14 22:46:34 UTC) #6
gauravsh
https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode198 chrome/browser/chromeos/mobile/mobile_activator.cc:198: void MobileActivator::NetworkManagerChanged() { On 2013/08/14 21:58:35, stevenjb (chromium) wrote: ...
7 years, 4 months ago (2013-08-15 01:46:35 UTC) #7
stevenjb
https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode198 chrome/browser/chromeos/mobile/mobile_activator.cc:198: void MobileActivator::NetworkManagerChanged() { On 2013/08/15 01:46:35, gauravsh wrote: > ...
7 years, 4 months ago (2013-08-15 02:00:10 UTC) #8
gauravsh
On 2013/08/15 02:00:10, stevenjb (chromium) wrote: > https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc > File chrome/browser/chromeos/mobile/mobile_activator.cc (right): > > https://codereview.chromium.org/22611005/diff/12001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode198 ...
7 years, 4 months ago (2013-08-15 22:19:39 UTC) #9
stevenjb
https://codereview.chromium.org/22611005/diff/42001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/42001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode479 chrome/browser/chromeos/mobile/mobile_activator.cc:479: this, &MobileActivator::ReconnectTimedOut); Note: This logic is probably fine for ...
7 years, 4 months ago (2013-08-16 18:19:05 UTC) #10
stevenjb
LGTM
7 years, 4 months ago (2013-08-16 18:19:25 UTC) #11
gauravsh
PTAL I had to make a few changes in response the results of testing: - ...
7 years, 4 months ago (2013-08-22 22:36:43 UTC) #12
stevenjb
https://codereview.chromium.org/22611005/diff/95001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/95001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode285 chrome/browser/chromeos/mobile/mobile_activator.cc:285: service_path_); GetNetworkState()? https://codereview.chromium.org/22611005/diff/95001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode537 chrome/browser/chromeos/mobile/mobile_activator.cc:537: const std::string& service_path) { I ...
7 years, 4 months ago (2013-08-23 00:10:55 UTC) #13
gauravsh
Phew! I think things finally all work. I tested both 4G LTE and 3G activation ...
7 years, 3 months ago (2013-08-27 22:58:12 UTC) #14
stevenjb
https://codereview.chromium.org/22611005/diff/106001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/106001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode377 chrome/browser/chromeos/mobile/mobile_activator.cc:377: } else if (technology_state !=NetworkStateHandler::TECHNOLOGY_ENABLED) { ' ' after ...
7 years, 3 months ago (2013-08-28 21:22:46 UTC) #15
gauravsh
https://codereview.chromium.org/22611005/diff/106001/chrome/browser/chromeos/mobile/mobile_activator.cc File chrome/browser/chromeos/mobile/mobile_activator.cc (right): https://codereview.chromium.org/22611005/diff/106001/chrome/browser/chromeos/mobile/mobile_activator.cc#newcode377 chrome/browser/chromeos/mobile/mobile_activator.cc:377: } else if (technology_state !=NetworkStateHandler::TECHNOLOGY_ENABLED) { On 2013/08/28 21:22:47, ...
7 years, 3 months ago (2013-08-28 23:45:07 UTC) #16
gauravsh
7 years, 3 months ago (2013-08-28 23:46:39 UTC) #17
stevenjb
lgtm
7 years, 3 months ago (2013-08-29 17:04:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/22611005/126001
7 years, 3 months ago (2013-08-29 17:22:42 UTC) #19
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=23046
7 years, 3 months ago (2013-08-29 17:40:01 UTC) #20
gauravsh
+xiyuan for c/b/ui/webui/chromeos/OWNERS
7 years, 3 months ago (2013-08-29 20:09:22 UTC) #21
xiyuan
c/b/ui/webui/chromeos LGTM
7 years, 3 months ago (2013-08-29 20:28:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/22611005/126001
7 years, 3 months ago (2013-08-29 22:03:51 UTC) #23
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 01:11:37 UTC) #24
Message was sent while issue was closed.
Change committed as 220463

Powered by Google App Engine
This is Rietveld 408576698