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

Issue 2870393003: Tether: only scan when asked to by NetworkStateHandler. (Closed)

Created:
3 years, 7 months ago by Ryan Hansberry
Modified:
3 years, 6 months ago
Reviewers:
stevenjb, khorimoto
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
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Tether: only scan when asked to by NetworkStateHandler. Tether will not necessarily always scan when asked to by NetworkStateHandler; if a scan is active or has recently finished, the request is a no-op. BUG=672263 Review-Url: https://codereview.chromium.org/2870393003 Cr-Commit-Position: refs/heads/master@{#472481} Committed: https://chromium.googlesource.com/chromium/src/+/65346fa38c3a010598bc61d5069691d2d2177f07

Patch Set 1 #

Patch Set 2 : Remove incorrect comment. #

Patch Set 3 : Add notion of HasRecentlyScanned to debounce calls every 10 seconds from NetworkStateHandler. #

Patch Set 4 : Remove incorrect call in ~HostScanScheduler() #

Total comments: 2

Patch Set 5 : Remove PowerManagerClient callbacks and implement all NetworkStateHandler callbacks. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -365 lines) Patch
M chromeos/components/tether/host_scan_scheduler.h View 1 2 3 4 1 chunk +24 lines, -78 lines 0 comments Download
M chromeos/components/tether/host_scan_scheduler.cc View 1 2 3 4 2 chunks +30 lines, -97 lines 0 comments Download
M chromeos/components/tether/host_scan_scheduler_unittest.cc View 1 2 3 4 2 chunks +152 lines, -168 lines 0 comments Download
M chromeos/components/tether/host_scanner.h View 1 2 3 chunks +28 lines, -5 lines 0 comments Download
M chromeos/components/tether/host_scanner.cc View 1 2 3 chunks +33 lines, -12 lines 0 comments Download
M chromeos/components/tether/host_scanner_unittest.cc View 1 2 6 chunks +62 lines, -1 line 0 comments Download
M chromeos/components/tether/initializer.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M chromeos/components/tether/initializer.cc View 1 2 3 4 1 chunk +7 lines, -4 lines 1 comment Download
M chromeos/components/tether/initializer_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (20 generated)
Ryan Hansberry
Hi stevenjb@: I'm adding you as a reviewer because unfortunately you know the most about ...
3 years, 7 months ago (2017-05-16 22:17:43 UTC) #8
stevenjb
lgtm https://codereview.chromium.org/2870393003/diff/60001/chromeos/components/tether/host_scan_scheduler.cc File chromeos/components/tether/host_scan_scheduler.cc (left): https://codereview.chromium.org/2870393003/diff/60001/chromeos/components/tether/host_scan_scheduler.cc#oldcode30 chromeos/components/tether/host_scan_scheduler.cc:30: host_scan_scheduler); If you are going to remove this ...
3 years, 7 months ago (2017-05-16 22:43:46 UTC) #12
Ryan Hansberry
https://codereview.chromium.org/2870393003/diff/60001/chromeos/components/tether/host_scan_scheduler.cc File chromeos/components/tether/host_scan_scheduler.cc (left): https://codereview.chromium.org/2870393003/diff/60001/chromeos/components/tether/host_scan_scheduler.cc#oldcode30 chromeos/components/tether/host_scan_scheduler.cc:30: host_scan_scheduler); On 2017/05/16 22:43:45, stevenjb wrote: > If you ...
3 years, 7 months ago (2017-05-17 00:28:32 UTC) #15
stevenjb
lgtm
3 years, 7 months ago (2017-05-17 16:43:24 UTC) #20
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/2870393003/80001
3 years, 7 months ago (2017-05-17 17:04:48 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/65346fa38c3a010598bc61d5069691d2d2177f07
3 years, 7 months ago (2017-05-17 17:16:57 UTC) #25
khorimoto
3 years, 6 months ago (2017-05-30 17:39:10 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/2870393003/diff/80001/chromeos/components/tet...
File chromeos/components/tether/initializer.cc (right):

https://codereview.chromium.org/2870393003/diff/80001/chromeos/components/tet...
chromeos/components/tether/initializer.cc:221: clock_ =
base::MakeUnique<base::DefaultClock>();
Can you just pass this to the HostScanner constructor? Doesn't seem like this
should be an instance field.

Powered by Google App Engine
This is Rietveld 408576698