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

Issue 2643483003: [Remoting Android] Refactor ClientTelemetryLogger (Closed)

Created:
3 years, 11 months ago by Yuwei
Modified:
3 years, 11 months ago
Reviewers:
*Sergey Ulanov, Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Remoting Android] Refactor ClientTelemetryLogger This CL refactors ClientTelemetryLogger such that it is bound to one session to avoid vulnerability of leaking session state if the logger has any bug. TelemetryLogWriter will still have the same lifetime as the app. Also made a ConnectToHostInfo struct to avoid passing 17 arguments to ChromotingJniInstance. BUG=680752 Review-Url: https://codereview.chromium.org/2643483003 Cr-Commit-Position: refs/heads/master@{#445320} Committed: https://chromium.googlesource.com/chromium/src/+/72b3d43cd95b330a4056e06371399af57b07bacd

Patch Set 1 #

Patch Set 2 : PTAL #

Total comments: 32

Patch Set 3 : PTAL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -208 lines) Patch
M remoting/android/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/base/telemetry_log_writer.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M remoting/base/telemetry_log_writer.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/client_telemetry_logger.h View 1 2 4 chunks +9 lines, -27 lines 0 comments Download
M remoting/client/client_telemetry_logger.cc View 1 2 5 chunks +8 lines, -39 lines 0 comments Download
M remoting/client/client_telemetry_logger_unittest.cc View 1 2 2 chunks +4 lines, -15 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.h View 1 4 chunks +5 lines, -20 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 10 chunks +24 lines, -33 lines 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.h View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.cc View 1 2 3 chunks +10 lines, -6 lines 0 comments Download
A remoting/client/jni/connect_to_host_info.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
A remoting/client/jni/connect_to_host_info.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M remoting/client/jni/jni_client.h View 1 2 3 chunks +10 lines, -19 lines 0 comments Download
M remoting/client/jni/jni_client.cc View 1 2 3 chunks +25 lines, -39 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Yuwei
PTAL. I won't check this in until M57 is branched just to be safe.
3 years, 11 months ago (2017-01-18 20:59:34 UTC) #12
Yuwei
On 2017/01/18 20:59:34, Yuwei wrote: > PTAL. I won't check this in until M57 is ...
3 years, 11 months ago (2017-01-18 21:09:30 UTC) #13
Sergey Ulanov
On 2017/01/18 21:09:30, Yuwei wrote: > On 2017/01/18 20:59:34, Yuwei wrote: > > PTAL. I ...
3 years, 11 months ago (2017-01-19 00:10:34 UTC) #14
Sergey Ulanov
https://codereview.chromium.org/2643483003/diff/20001/remoting/base/telemetry_log_writer.cc File remoting/base/telemetry_log_writer.cc (right): https://codereview.chromium.org/2643483003/diff/20001/remoting/base/telemetry_log_writer.cc#newcode23 remoting/base/telemetry_log_writer.cc:23: weak_ptr_ = weak_factory_.GetWeakPtr(); this can be initialized in the ...
3 years, 11 months ago (2017-01-19 00:50:39 UTC) #15
Yuwei
PTAL Removed GetWeakPtr from TelemetryLogWriter and just use raw pointer since the log writer is ...
3 years, 11 months ago (2017-01-19 23:00:01 UTC) #18
Sergey Ulanov
lgtm https://codereview.chromium.org/2643483003/diff/20001/remoting/base/telemetry_log_writer.cc File remoting/base/telemetry_log_writer.cc (right): https://codereview.chromium.org/2643483003/diff/20001/remoting/base/telemetry_log_writer.cc#newcode23 remoting/base/telemetry_log_writer.cc:23: weak_ptr_ = weak_factory_.GetWeakPtr(); On 2017/01/19 23:00:00, Yuwei wrote: ...
3 years, 11 months ago (2017-01-23 00:36:49 UTC) #19
Yuwei
Thanks! https://codereview.chromium.org/2643483003/diff/20001/remoting/base/telemetry_log_writer.cc File remoting/base/telemetry_log_writer.cc (right): https://codereview.chromium.org/2643483003/diff/20001/remoting/base/telemetry_log_writer.cc#newcode23 remoting/base/telemetry_log_writer.cc:23: weak_ptr_ = weak_factory_.GetWeakPtr(); On 2017/01/23 00:36:49, Sergey Ulanov ...
3 years, 11 months ago (2017-01-23 02:19:47 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/2643483003/80001
3 years, 11 months ago (2017-01-23 02:20:07 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 04:20:20 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/72b3d43cd95b330a4056e0637139...

Powered by Google App Engine
This is Rietveld 408576698