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

Issue 2007123003: [Android Client] Break down multi-threaded classes by thread (Closed)

Created:
4 years, 7 months ago by Yuwei
Modified:
4 years, 6 months ago
Reviewers:
Lambros
CC:
Sergey Ulanov, chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromotingJniInstance has been a ref-counted class running on multiple threads, which has obscured deletion behavior. This CL drops its ref-counted support and pulls non-network-thread logics out of the class. Doc: https://docs.google.com/document/d/1ZK-UQSC_rTjNsBa_MFbCmCh3fQRPFuVAwKhWnTZqc_Q/edit?usp=sharing BUG=614242 Committed: https://crrev.com/b98e6c2bf39155864da71b8b69470ebc58913719 Cr-Commit-Position: refs/heads/master@{#397456}

Patch Set 1 : #

Total comments: 38

Patch Set 2 : Rebase #

Patch Set 3 : Reviewer's Feedback #

Patch Set 4 : Rename JniSecretFetcher to JniPairingSecretFetcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+733 lines, -412 lines) Patch
M remoting/android/BUILD.gn View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M remoting/android/client_java_tmpl.gni View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/DesktopView.java View 4 chunks +5 lines, -5 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/cardboard/CardboardRenderer.java View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/cardboard/Cursor.java View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/cardboard/Desktop.java View 1 chunk +1 line, -1 line 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/jni/Client.java View 1 2 19 chunks +41 lines, -153 lines 0 comments Download
A remoting/android/java/src/org/chromium/chromoting/jni/Display.java View 1 2 1 chunk +180 lines, -0 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.h View 1 2 3 7 chunks +24 lines, -17 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 3 23 chunks +91 lines, -98 lines 0 comments Download
M remoting/client/jni/jni_client.h View 1 2 3 7 chunks +22 lines, -33 lines 0 comments Download
M remoting/client/jni/jni_client.cc View 1 2 3 9 chunks +52 lines, -88 lines 0 comments Download
A remoting/client/jni/jni_display_handler.h View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
A remoting/client/jni/jni_display_handler.cc View 1 2 1 chunk +110 lines, -0 lines 0 comments Download
M remoting/client/jni/jni_frame_consumer.h View 1 chunk +4 lines, -2 lines 0 comments Download
M remoting/client/jni/jni_frame_consumer.cc View 6 chunks +15 lines, -11 lines 0 comments Download
A remoting/client/jni/jni_pairing_secret_fetcher.h View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A remoting/client/jni/jni_pairing_secret_fetcher.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M remoting/client/jni/remoting_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007123003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007123003/20001
4 years, 7 months ago (2016-05-24 19:50:02 UTC) #3
Yuwei
ptal
4 years, 7 months ago (2016-05-24 21:47:57 UTC) #8
Yuwei
This CL is ready to be reviewed (PTAL at the doc if you see anything ...
4 years, 6 months ago (2016-05-27 19:14:13 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007123003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007123003/140001
4 years, 6 months ago (2016-05-27 20:12:55 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 21:32:58 UTC) #21
Yuwei
CC'ed Sergey. Feel free to join if you have any thoughts :)
4 years, 6 months ago (2016-05-27 23:15:34 UTC) #22
Lambros
lgtm https://codereview.chromium.org/2007123003/diff/140001/remoting/android/java/src/org/chromium/chromoting/jni/Client.java File remoting/android/java/src/org/chromium/chromoting/jni/Client.java (right): https://codereview.chromium.org/2007123003/diff/140001/remoting/android/java/src/org/chromium/chromoting/jni/Client.java#newcode32 remoting/android/java/src/org/chromium/chromoting/jni/Client.java:32: // Called on the UI thread. If everything ...
4 years, 6 months ago (2016-05-28 00:43:06 UTC) #23
Yuwei
I'll send another CL to address comments on the design doc. Thanks for reviewing this ...
4 years, 6 months ago (2016-06-01 21:30:11 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007123003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007123003/220001
4 years, 6 months ago (2016-06-01 21:31:20 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/239044)
4 years, 6 months ago (2016-06-02 01:59:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007123003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007123003/220001
4 years, 6 months ago (2016-06-02 03:21:51 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/239536)
4 years, 6 months ago (2016-06-02 04:06:09 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007123003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007123003/220001
4 years, 6 months ago (2016-06-02 16:44:16 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:220001)
4 years, 6 months ago (2016-06-02 17:29:26 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 17:30:59 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b98e6c2bf39155864da71b8b69470ebc58913719
Cr-Commit-Position: refs/heads/master@{#397456}

Powered by Google App Engine
This is Rietveld 408576698