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

Issue 2860803002: [Chromoting] Allow ProcessStatsSender to receive nullptr ProcessStatsAgent

Created:
3 years, 7 months ago by Hzj_jie
Modified:
3 years, 6 months ago
Reviewers:
Jamie, joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org, Sergey Ulanov
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromoting] Allow ProcessStatsSender to receive nullptr ProcessStatsAgent This change allows ProcessStatsSender to receive nullptr ProcessStatsAgent, so the caller does not need to care about this issue. Meanwhile FakeProcessStatsAgent is also moved to a standalone class to share with other tests. Refer to pending change https://codereview.chromium.org/2858813002/ for the usage. BUG=650926

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -49 lines) Patch
M remoting/host/process_stats_sender.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/process_stats_sender.cc View 1 chunk +17 lines, -2 lines 6 comments Download
M remoting/host/process_stats_sender_unittest.cc View 6 chunks +16 lines, -44 lines 0 comments Download
M remoting/protocol/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A remoting/protocol/fake_process_stats_stub.h View 1 chunk +34 lines, -0 lines 5 comments Download
A remoting/protocol/fake_process_stats_stub.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M remoting/protocol/process_stats_stub.h View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Hzj_jie
3 years, 7 months ago (2017-05-03 21:05:43 UTC) #10
joedow
https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc File remoting/host/process_stats_sender.cc (right): https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc#newcode36 remoting/host/process_stats_sender.cc:36: agents_(RemoveNullAgent(agents)), I'm not sure about the approach here. It ...
3 years, 7 months ago (2017-05-03 21:41:02 UTC) #11
Hzj_jie
https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc File remoting/host/process_stats_sender.cc (right): https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc#newcode36 remoting/host/process_stats_sender.cc:36: agents_(RemoveNullAgent(agents)), On 2017/05/03 21:41:01, joedow wrote: > I'm not ...
3 years, 7 months ago (2017-05-03 22:18:04 UTC) #12
joedow
https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc File remoting/host/process_stats_sender.cc (right): https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc#newcode40 remoting/host/process_stats_sender.cc:40: DCHECK(interval > base::TimeDelta()); On 2017/05/03 22:18:04, Hzj_jie wrote: > ...
3 years, 7 months ago (2017-05-08 16:25:41 UTC) #13
Hzj_jie
https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc File remoting/host/process_stats_sender.cc (right): https://codereview.chromium.org/2860803002/diff/20001/remoting/host/process_stats_sender.cc#newcode40 remoting/host/process_stats_sender.cc:40: DCHECK(interval > base::TimeDelta()); On 2017/05/08 16:25:41, joedow wrote: > ...
3 years, 7 months ago (2017-05-08 18:16:19 UTC) #14
joedow
https://codereview.chromium.org/2860803002/diff/20001/remoting/protocol/fake_process_stats_stub.h File remoting/protocol/fake_process_stats_stub.h (right): https://codereview.chromium.org/2860803002/diff/20001/remoting/protocol/fake_process_stats_stub.h#newcode25 remoting/protocol/fake_process_stats_stub.h:25: void set_expected_usage_count(size_t expected_usage_count); On 2017/05/08 18:16:19, Hzj_jie wrote: > ...
3 years, 7 months ago (2017-05-08 18:18:53 UTC) #15
Hzj_jie
Any other comments for this change?
3 years, 7 months ago (2017-05-08 19:17:50 UTC) #16
joedow
I still have concerns over filtering nulls out in the c'tor when setting up the ...
3 years, 7 months ago (2017-05-26 16:06:16 UTC) #17
Hzj_jie
On 2017/05/26 16:06:16, joedow wrote: > I still have concerns over filtering nulls out in ...
3 years, 6 months ago (2017-05-28 20:04:53 UTC) #18
joedow
3 years, 6 months ago (2017-05-30 15:20:26 UTC) #19
I'm not concerned about where the null checking code goes but rather why we need
it in the first place.

Let's talk through your design when you get in.

Powered by Google App Engine
This is Rietveld 408576698