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

Issue 571743002: Adding non-tracking mode support to AddressTracker. (Closed)

Created:
6 years, 3 months ago by guoweis_left_chromium
Modified:
6 years, 3 months ago
Reviewers:
pauljensen, guoweis2
CC:
chromium-reviews, cbentzel+watch_chromium.org, juberti1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

The non-tracking mode in AddressTracker will be used as a way to get a snapshot of current system configuration from GetNetworkList whose current implementation doesn't provide IPv6 address attributes. BUG=411086 Committed: https://crrev.com/f09e9971c053661b2113f38881381678af6f62b3 Cr-Commit-Position: refs/heads/master@{#296048}

Patch Set 1 #

Patch Set 2 : add track option in AddressTrackerLinux::Init #

Total comments: 2

Patch Set 3 : add non-tracking version of constructor for addresstracker #

Patch Set 4 : Move the AddressTrackLinuxerAutoLock to address_tracker_linux.h #

Patch Set 5 : Add one more comment on the usage of ThreadChecker. #

Total comments: 6

Patch Set 6 : Further fix on AddressTrackerAutoLock #

Total comments: 11

Patch Set 7 : Address issues in comments. #

Total comments: 10

Patch Set 8 : Add a unit test for non-tracking mode. #

Patch Set 9 : Add one more test for Init() under non-tracking mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -64 lines) Patch
M net/base/address_tracker_linux.h View 1 2 3 4 5 6 7 4 chunks +38 lines, -5 lines 0 comments Download
M net/base/address_tracker_linux.cc View 1 2 3 4 5 10 chunks +80 lines, -30 lines 0 comments Download
M net/base/address_tracker_linux_unittest.cc View 1 2 3 4 5 6 7 8 14 chunks +82 lines, -29 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
guoweis_left_chromium
@Paul, this is not final but mainly to start the design discussion. My design goal ...
6 years, 3 months ago (2014-09-13 16:25:48 UTC) #2
pauljensen
I could really go either way: 1. simply add a "bool track" option to the ...
6 years, 3 months ago (2014-09-17 16:31:38 UTC) #3
guoweis2
On 2014/09/17 16:31:38, pauljensen wrote: > I could really go either way: > 1. simply ...
6 years, 3 months ago (2014-09-17 16:37:55 UTC) #4
guoweis2
On 2014/09/17 16:37:55, guoweis2 wrote: > On 2014/09/17 16:31:38, pauljensen wrote: > > I could ...
6 years, 3 months ago (2014-09-17 21:38:16 UTC) #5
pauljensen
I'm liking the "bool track" option. That seems like a great way to go. As ...
6 years, 3 months ago (2014-09-18 13:56:15 UTC) #6
guoweis2
PTAL. Add a non-tracking version of constructor. https://codereview.chromium.org/571743002/diff/20001/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): https://codereview.chromium.org/571743002/diff/20001/net/base/address_tracker_linux.cc#newcode112 net/base/address_tracker_linux.cc:112: DCHECK(!link_callback.is_null()); On ...
6 years, 3 months ago (2014-09-18 19:41:12 UTC) #8
pauljensen
I think we should add DCHECK(CalledOnValidThread()) in AddressTrackerAutoLock when !tracking. To do this I think ...
6 years, 3 months ago (2014-09-19 14:50:17 UTC) #9
chromium-reviews
Thanks, Guowei On Fri, Sep 19, 2014 at 7:50 AM, <pauljensen@chromium.org> wrote: > I think ...
6 years, 3 months ago (2014-09-19 17:39:47 UTC) #10
chromium-reviews
Thanks, Guowei On Fri, Sep 19, 2014 at 10:39 AM, Guo-wei Shieh <guoweis@google.com> wrote: > ...
6 years, 3 months ago (2014-09-19 18:03:59 UTC) #11
chromium-reviews
I think I understand what you meant now. The thread_checker_ will be a member class ...
6 years, 3 months ago (2014-09-19 18:05:21 UTC) #12
guoweis2
PTAL. On 2014/09/19 18:05:21, chromium-reviews wrote: > I think I understand what you meant now. ...
6 years, 3 months ago (2014-09-19 18:30:47 UTC) #13
pauljensen
https://codereview.chromium.org/571743002/diff/80001/net/base/address_tracker_linux.h File net/base/address_tracker_linux.h (right): https://codereview.chromium.org/571743002/diff/80001/net/base/address_tracker_linux.h#newcode76 net/base/address_tracker_linux.h:76: class AddressTrackerAutoLock { Please move all this code into ...
6 years, 3 months ago (2014-09-19 18:39:42 UTC) #14
guoweis2
PTAL. https://codereview.chromium.org/571743002/diff/80001/net/base/address_tracker_linux.h File net/base/address_tracker_linux.h (right): https://codereview.chromium.org/571743002/diff/80001/net/base/address_tracker_linux.h#newcode76 net/base/address_tracker_linux.h:76: class AddressTrackerAutoLock { On 2014/09/19 18:39:42, pauljensen wrote: ...
6 years, 3 months ago (2014-09-19 18:48:30 UTC) #15
pauljensen
https://codereview.chromium.org/571743002/diff/100001/net/base/address_tracker_linux.h File net/base/address_tracker_linux.h (right): https://codereview.chromium.org/571743002/diff/100001/net/base/address_tracker_linux.h#newcode24 net/base/address_tracker_linux.h:24: #include "base/threading/thread_restrictions.h" unnecessary? https://codereview.chromium.org/571743002/diff/100001/net/base/address_tracker_linux.h#newcode39 net/base/address_tracker_linux.h:39: // constructed without callbacks, ...
6 years, 3 months ago (2014-09-19 19:04:30 UTC) #16
guoweis2
PTAL https://codereview.chromium.org/571743002/diff/100001/net/base/address_tracker_linux.h File net/base/address_tracker_linux.h (right): https://codereview.chromium.org/571743002/diff/100001/net/base/address_tracker_linux.h#newcode24 net/base/address_tracker_linux.h:24: #include "base/threading/thread_restrictions.h" On 2014/09/19 19:04:29, pauljensen wrote: > ...
6 years, 3 months ago (2014-09-19 19:15:38 UTC) #17
pauljensen
This needs some tests. https://codereview.chromium.org/571743002/diff/120001/net/base/address_tracker_linux.h File net/base/address_tracker_linux.h (right): https://codereview.chromium.org/571743002/diff/120001/net/base/address_tracker_linux.h#newcode38 net/base/address_tracker_linux.h:38: // system configuration once Init() ...
6 years, 3 months ago (2014-09-19 19:25:40 UTC) #18
guoweis2
PTAL. I was hoping I could remove friend status from AddressTrackerLinuxTest but still need it ...
6 years, 3 months ago (2014-09-19 22:12:55 UTC) #20
pauljensen
Looking like it's almost done. Could we add one more test that just calls AddressTrackerLinux() ...
6 years, 3 months ago (2014-09-22 11:08:38 UTC) #22
guoweis2
On 2014/09/22 11:08:38, pauljensen wrote: > Looking like it's almost done. Could we add one ...
6 years, 3 months ago (2014-09-22 16:53:43 UTC) #23
pauljensen
lgtm
6 years, 3 months ago (2014-09-22 18:29:12 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/571743002/200001
6 years, 3 months ago (2014-09-22 19:53:14 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:200001) as bca4ac30ad0f03b7dbbd4ad3a7dec3bdbc1054ca
6 years, 3 months ago (2014-09-22 20:47:50 UTC) #27
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 20:48:31 UTC) #28
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f09e9971c053661b2113f38881381678af6f62b3
Cr-Commit-Position: refs/heads/master@{#296048}

Powered by Google App Engine
This is Rietveld 408576698