Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Issue 2975483002: [CrOS Tether] Disconnect cleanly from active Tether networks when the user logs out or the Tether c… (Closed)

Created:
3 years, 5 months ago by Kyle Horimoto
Modified:
3 years, 5 months ago
Reviewers:
Ryan Hansberry
CC:
chromium-reviews, jlklein+watch-tether_chromium.org, tengs+watch-tether_chromium.org, hansberry+watch-tether_chromium.org, jhawkins+watch-tether_chromium.org, oshima+watch_chromium.org, lesliewatkins+watch-tether_chromium.org, khorimoto+watch-tether_chromium.org, davemoore+watch_chromium.org, jmann
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[CrOS Tether] Disconnect cleanly from active Tether networks when the user logs out or the Tether component is killed. Under normal circumstances, when a user disconnects from a Tether network, we start up an asynchronous connection flow. However, when these two edge cases occur, the Tether component is destroyed synchronously, and the full disconnection flow cannot complete (namely, the old Wi-Fi network supporting the Tether network is not removed). This CL fixes this problem by persisting the disconnecting Wi-Fi network GUID and removing it next time the Tether componentn starts up. This CL also: (1) Changes TetherDisconnector to an interface and moves the implementation to TetherDisconnectorImpl to make testing easier. (2) Updates the shutdown flow for the Tether component by leaving the Tether TechnologyState intact during shutdown to prevent UI jank. BUG=672263 Review-Url: https://codereview.chromium.org/2975483002 Cr-Commit-Position: refs/heads/master@{#486072} Committed: https://chromium.googlesource.com/chromium/src/+/73dc567c7cfc4fc48722c29086deb3884e56a619

Patch Set 1 #

Total comments: 13

Patch Set 2 : hansberry@ comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -974 lines) Patch
M chrome/browser/chromeos/tether/tether_service.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/tether/tether_service_unittest.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chromeos/components/tether/BUILD.gn View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/components/tether/fake_tether_host_fetcher.h View 1 chunk +7 lines, -2 lines 0 comments Download
M chromeos/components/tether/initializer.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chromeos/components/tether/network_connection_handler_tether_delegate_unittest.cc View 1 chunk +1 line, -9 lines 0 comments Download
M chromeos/components/tether/pref_names.h View 1 chunk +11 lines, -0 lines 0 comments Download
M chromeos/components/tether/pref_names.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/components/tether/tether_disconnector.h View 1 2 chunks +9 lines, -69 lines 0 comments Download
M chromeos/components/tether/tether_disconnector.cc View 1 1 chunk +0 lines, -211 lines 0 comments Download
A + chromeos/components/tether/tether_disconnector_impl.h View 5 chunks +22 lines, -12 lines 0 comments Download
A + chromeos/components/tether/tether_disconnector_impl.cc View 1 9 chunks +67 lines, -18 lines 0 comments Download
A + chromeos/components/tether/tether_disconnector_impl_unittest.cc View 1 28 chunks +141 lines, -51 lines 0 comments Download
D chromeos/components/tether/tether_disconnector_unittest.cc View 1 chunk +0 lines, -592 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Kyle Horimoto
3 years, 5 months ago (2017-07-06 21:34:28 UTC) #2
Ryan Hansberry
https://codereview.chromium.org/2975483002/diff/1/chromeos/components/tether/initializer.h File chromeos/components/tether/initializer.h (left): https://codereview.chromium.org/2975483002/diff/1/chromeos/components/tether/initializer.h#oldcode136 chromeos/components/tether/initializer.h:136: std::unique_ptr<TetherDisconnector> tether_disconnector_; Was the change to this file necessary? ...
3 years, 5 months ago (2017-07-11 22:23:56 UTC) #3
Kyle Horimoto
https://codereview.chromium.org/2975483002/diff/1/chromeos/components/tether/initializer.h File chromeos/components/tether/initializer.h (left): https://codereview.chromium.org/2975483002/diff/1/chromeos/components/tether/initializer.h#oldcode136 chromeos/components/tether/initializer.h:136: std::unique_ptr<TetherDisconnector> tether_disconnector_; On 2017/07/11 22:23:56, Ryan Hansberry wrote: > ...
3 years, 5 months ago (2017-07-12 01:42:59 UTC) #4
Ryan Hansberry
lgtm https://codereview.chromium.org/2975483002/diff/1/chromeos/components/tether/pref_names.cc File chromeos/components/tether/pref_names.cc (right): https://codereview.chromium.org/2975483002/diff/1/chromeos/components/tether/pref_names.cc#newcode28 chromeos/components/tether/pref_names.cc:28: "tether.disconnecting_wifi_network_id"; On 2017/07/12 01:42:59, Kyle Horimoto wrote: > ...
3 years, 5 months ago (2017-07-12 17:10:10 UTC) #6
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/2975483002/20001
3 years, 5 months ago (2017-07-12 17:10:22 UTC) #7
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 20:19:48 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/73dc567c7cfc4fc48722c29086de...

Powered by Google App Engine
This is Rietveld 408576698