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

Issue 2852693004: [CrOS Tether] Create HostScanCache, which caches scan results and inserts them into the network sta… (Closed)

Created:
3 years, 7 months ago by Kyle Horimoto
Modified:
3 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jlklein+watch-tether_chromium.org, tengs+watch-tether_chromium.org, khorimoto+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, stevenjb+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[CrOS Tether] Create HostScanCache, which caches scan results and inserts them into the network stack. This CL also includes some code in the network stack to pipe scan results through and also includes a refactor of HostScanner, since that was the class which previously was in charge of passing scan results to the network stack. BUG=672263 Review-Url: https://codereview.chromium.org/2852693004 Cr-Commit-Position: refs/heads/master@{#468705} Committed: https://chromium.googlesource.com/chromium/src/+/6b5b7de103764340711bc970879caf4afeab23b0

Patch Set 1 #

Patch Set 2 : Fixed comment, added tests for TestHostResponseRecorder::Observer. #

Total comments: 16

Patch Set 3 : hansberry@ comments. #

Total comments: 2

Patch Set 4 : Remove unnecessary comment. #

Patch Set 5 : stevenjb@ comments. #

Patch Set 6 : Rebased. #

Total comments: 28

Patch Set 7 : stevenjb@ comments. #

Total comments: 4

Patch Set 8 : stevenjb@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1343 lines, -123 lines) Patch
M chromeos/components/tether/BUILD.gn View 3 chunks +5 lines, -0 lines 0 comments Download
A chromeos/components/tether/fake_host_scan_cache.h View 1 2 3 4 1 chunk +71 lines, -0 lines 0 comments Download
A chromeos/components/tether/fake_host_scan_cache.cc View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
A chromeos/components/tether/host_scan_cache.h View 1 2 3 4 5 6 7 1 chunk +115 lines, -0 lines 0 comments Download
A chromeos/components/tether/host_scan_cache.cc View 1 2 3 4 5 6 7 1 chunk +227 lines, -0 lines 0 comments Download
A chromeos/components/tether/host_scan_cache_unittest.cc View 1 2 3 4 5 6 7 1 chunk +447 lines, -0 lines 0 comments Download
M chromeos/components/tether/host_scanner.h View 3 chunks +10 lines, -14 lines 0 comments Download
M chromeos/components/tether/host_scanner.cc View 1 2 3 4 4 chunks +46 lines, -39 lines 0 comments Download
M chromeos/components/tether/host_scanner_unittest.cc View 1 2 3 4 15 chunks +223 lines, -59 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 2 chunks +7 lines, -2 lines 0 comments Download
M chromeos/components/tether/tether_host_response_recorder.h View 1 2 3 4 5 6 3 chunks +20 lines, -5 lines 0 comments Download
M chromeos/components/tether/tether_host_response_recorder.cc View 1 2 3 4 5 6 4 chunks +30 lines, -3 lines 0 comments Download
M chromeos/components/tether/tether_host_response_recorder_unittest.cc View 1 7 chunks +47 lines, -1 line 0 comments Download

Messages

Total messages: 22 (5 generated)
Kyle Horimoto
stevenjb@: For network code. hansberry@: For tether code.
3 years, 7 months ago (2017-04-28 19:52:23 UTC) #2
Ryan Hansberry
https://codereview.chromium.org/2852693004/diff/20001/chromeos/components/tether/host_scan_cache.cc File chromeos/components/tether/host_scan_cache.cc (right): https://codereview.chromium.org/2852693004/diff/20001/chromeos/components/tether/host_scan_cache.cc#newcode79 chromeos/components/tether/host_scan_cache.cc:79: tether_guid_to_timer_map_.emplace( I think it would be clearer to do ...
3 years, 7 months ago (2017-04-28 22:31:05 UTC) #3
Kyle Horimoto
https://codereview.chromium.org/2852693004/diff/20001/chromeos/components/tether/host_scan_cache.cc File chromeos/components/tether/host_scan_cache.cc (right): https://codereview.chromium.org/2852693004/diff/20001/chromeos/components/tether/host_scan_cache.cc#newcode79 chromeos/components/tether/host_scan_cache.cc:79: tether_guid_to_timer_map_.emplace( On 2017/04/28 22:31:04, Ryan Hansberry wrote: > I ...
3 years, 7 months ago (2017-04-28 22:45:04 UTC) #4
stevenjb
1. I think you can (and therefore should) easily separate out the src/chromeos/network changes, or ...
3 years, 7 months ago (2017-04-28 23:00:22 UTC) #5
Kyle Horimoto
On 2017/04/28 23:00:22, stevenjb wrote: > 1. I think you can (and therefore should) easily ...
3 years, 7 months ago (2017-04-29 00:16:37 UTC) #6
Kyle Horimoto
https://codereview.chromium.org/2852693004/diff/40001/chromeos/components/tether/fake_host_scan_cache.h File chromeos/components/tether/fake_host_scan_cache.h (right): https://codereview.chromium.org/2852693004/diff/40001/chromeos/components/tether/fake_host_scan_cache.h#newcode42 chromeos/components/tether/fake_host_scan_cache.h:42: FakeHostScanCache::CacheEntry* GetCacheEntry( On 2017/04/28 23:00:22, stevenjb wrote: > The ...
3 years, 7 months ago (2017-04-29 00:16:55 UTC) #7
stevenjb
On 2017/04/29 00:16:37, Kyle Horimoto wrote: > On 2017/04/28 23:00:22, stevenjb wrote: > > 1. ...
3 years, 7 months ago (2017-05-01 16:13:02 UTC) #8
Kyle Horimoto
3 years, 7 months ago (2017-05-01 16:57:22 UTC) #9
Ryan Hansberry
lgtm. Please update the description of this CL as it no longer "includes some code ...
3 years, 7 months ago (2017-05-01 17:38:40 UTC) #10
stevenjb
https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.cc File chromeos/components/tether/host_scan_cache.cc (right): https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.cc#newcode29 chromeos/components/tether/host_scan_cache.cc:29: // HostScanCacheTestst. s/Testst/Tests/ Also... yuck. We're adding complexity to ...
3 years, 7 months ago (2017-05-01 18:26:12 UTC) #11
Kyle Horimoto
https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.cc File chromeos/components/tether/host_scan_cache.cc (right): https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.cc#newcode29 chromeos/components/tether/host_scan_cache.cc:29: // HostScanCacheTestst. On 2017/05/01 18:26:11, stevenjb wrote: > s/Testst/Tests/ ...
3 years, 7 months ago (2017-05-01 21:14:44 UTC) #12
stevenjb
https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.h File chromeos/components/tether/host_scan_cache.h (right): https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.h#newcode98 chromeos/components/tether/host_scan_cache.h:98: }; On 2017/05/01 21:14:43, Kyle Horimoto wrote: > On ...
3 years, 7 months ago (2017-05-01 22:13:01 UTC) #13
Kyle Horimoto
https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.h File chromeos/components/tether/host_scan_cache.h (right): https://codereview.chromium.org/2852693004/diff/100001/chromeos/components/tether/host_scan_cache.h#newcode98 chromeos/components/tether/host_scan_cache.h:98: }; On 2017/05/01 22:13:01, stevenjb wrote: > On 2017/05/01 ...
3 years, 7 months ago (2017-05-02 00:02:19 UTC) #14
stevenjb
ok, this lgtm.
3 years, 7 months ago (2017-05-02 15:20:20 UTC) #15
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/2852693004/140001
3 years, 7 months ago (2017-05-02 16:50:22 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/6b5b7de103764340711bc970879caf4afeab23b0
3 years, 7 months ago (2017-05-02 17:58:31 UTC) #21
findit-for-me
3 years, 7 months ago (2017-05-02 19:07:43 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2861443002/ by
findit-for-me@appspot.gserviceaccount.com.

The reason for reverting is: 
Findit (https://goo.gl/kROfz5) identified CL at revision 468705 as the
culprit for failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb....

Powered by Google App Engine
This is Rietveld 408576698