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

Issue 2844973002: [CrOS Tether] Create TetherHostResponseRecorder, which records ConnectTetheringResponses and Tether… (Closed)

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

Description

[CrOS Tether] Create TetherHostResponseRecorder, which records ConnectTetheringResponses and TetherAvailabilityResponses from tether hosts. This takes some existing functionality out of HostScanDevicePrioritizer and extends it to record the IDs of all ConnectTetheringResponses received instead of only the most recent one. This refactor is needed because the networking stack needs to know whether to show a warning dialog (stating that tethering will use mobile data and battery on the host device) before connecting to a device for the first time. Thus, it is necessary to record all previously received ConnectTetheringResponses instead of only the most recent one. Because this logic is unrelated to the host prioritization logic, I moved it to its own class. BUG=672263 Review-Url: https://codereview.chromium.org/2844973002 Cr-Commit-Position: refs/heads/master@{#467787} Committed: https://chromium.googlesource.com/chromium/src/+/bdc215987e3feb39a009ccb797bf751ba42311d6

Patch Set 1 #

Patch Set 2 : Removed file that didn't belong in this CL, alphabetized forward declarations. #

Total comments: 8

Patch Set 3 : hansberry@ comment. #

Patch Set 4 : Changed "Connectable" wording to "Connected". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+537 lines, -202 lines) Patch
M chromeos/components/tether/BUILD.gn View 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/components/tether/connect_tethering_operation.h View 1 5 chunks +5 lines, -5 lines 0 comments Download
M chromeos/components/tether/connect_tethering_operation.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M chromeos/components/tether/connect_tethering_operation_unittest.cc View 8 chunks +11 lines, -11 lines 0 comments Download
M chromeos/components/tether/host_scan_device_prioritizer.h View 2 chunks +5 lines, -22 lines 0 comments Download
M chromeos/components/tether/host_scan_device_prioritizer.cc View 1 2 3 2 chunks +22 lines, -75 lines 0 comments Download
M chromeos/components/tether/host_scan_device_prioritizer_unittest.cc View 5 chunks +25 lines, -20 lines 0 comments Download
M chromeos/components/tether/host_scan_scheduler_unittest.cc View 1 chunk +7 lines, -1 line 0 comments Download
M chromeos/components/tether/host_scanner.h View 3 chunks +3 lines, -0 lines 0 comments Download
M chromeos/components/tether/host_scanner.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chromeos/components/tether/host_scanner_operation.h View 5 chunks +8 lines, -4 lines 0 comments Download
M chromeos/components/tether/host_scanner_operation.cc View 5 chunks +13 lines, -7 lines 0 comments Download
M chromeos/components/tether/host_scanner_operation_unittest.cc View 11 chunks +18 lines, -12 lines 0 comments Download
M chromeos/components/tether/host_scanner_unittest.cc View 6 chunks +15 lines, -5 lines 0 comments Download
M chromeos/components/tether/initializer.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/components/tether/initializer.cc View 5 chunks +10 lines, -6 lines 0 comments Download
M chromeos/components/tether/mock_host_scan_device_prioritizer.h View 1 chunk +0 lines, -4 lines 0 comments Download
A chromeos/components/tether/mock_tether_host_response_recorder.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chromeos/components/tether/mock_tether_host_response_recorder.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chromeos/components/tether/pref_names.h View 1 chunk +5 lines, -4 lines 0 comments Download
M chromeos/components/tether/pref_names.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/components/tether/tether_connector.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chromeos/components/tether/tether_connector.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chromeos/components/tether/tether_connector_unittest.cc View 6 chunks +10 lines, -10 lines 0 comments Download
A chromeos/components/tether/tether_host_response_recorder.h View 1 2 3 1 chunk +77 lines, -0 lines 0 comments Download
A chromeos/components/tether/tether_host_response_recorder.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A chromeos/components/tether/tether_host_response_recorder_unittest.cc View 1 2 3 1 chunk +125 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
Kyle Horimoto
3 years, 8 months ago (2017-04-27 03:08:04 UTC) #2
Ryan Hansberry
https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scan_device_prioritizer.h File chromeos/components/tether/host_scan_device_prioritizer.h (right): https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scan_device_prioritizer.h#newcode20 chromeos/components/tether/host_scan_device_prioritizer.h:20: // ConnectTetheringResponse is always at the front of the ...
3 years, 7 months ago (2017-04-27 17:45:55 UTC) #3
Kyle Horimoto
https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scan_device_prioritizer.h File chromeos/components/tether/host_scan_device_prioritizer.h (right): https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scan_device_prioritizer.h#newcode20 chromeos/components/tether/host_scan_device_prioritizer.h:20: // ConnectTetheringResponse is always at the front of the ...
3 years, 7 months ago (2017-04-27 17:51:43 UTC) #4
Ryan Hansberry
lgtm https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scan_device_prioritizer.h File chromeos/components/tether/host_scan_device_prioritizer.h (right): https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scan_device_prioritizer.h#newcode20 chromeos/components/tether/host_scan_device_prioritizer.h:20: // ConnectTetheringResponse is always at the front of ...
3 years, 7 months ago (2017-04-27 18:08:26 UTC) #5
Kyle Horimoto
https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scanner.cc File chromeos/components/tether/host_scanner.cc (right): https://codereview.chromium.org/2844973002/diff/20001/chromeos/components/tether/host_scanner.cc#newcode129 chromeos/components/tether/host_scanner.cc:129: scanned_device_list_so_far.at(0).remote_device); On 2017/04/27 18:08:25, Ryan Hansberry wrote: > On ...
3 years, 7 months ago (2017-04-27 18:10:55 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/2844973002/40001
3 years, 7 months ago (2017-04-27 18:11:35 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/166485) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-04-27 18:29:09 UTC) #11
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/2844973002/60001
3 years, 7 months ago (2017-04-27 18:41:56 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/440565)
3 years, 7 months ago (2017-04-27 19:10:50 UTC) #18
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/2844973002/60001
3 years, 7 months ago (2017-04-27 19:12:47 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 20:53:24 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bdc215987e3feb39a009ccb797bf...

Powered by Google App Engine
This is Rietveld 408576698