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

Issue 2745583008: Refactoring out the chromoting jni runtime class in favor of chromoting client runtime. (Closed)

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

Description

Refactoring out the chromoting jni runtime class in favor of chromoting client runtime. The end goal here is to be able to use a refactored version of chromoting jni instance, having android and iOS share a chromoting instance. But first step is to remove the jni runtime to have the chromoting instance and all other supporting code use the common client runtime rather than this wrapped runtime for jni. R=sergeyu@chromium.org, yuweih@chromium.org BUG=699788 Review-Url: https://codereview.chromium.org/2745583008 Cr-Commit-Position: refs/heads/master@{#457830} Committed: https://chromium.googlesource.com/chromium/src/+/825f7ebf3ad0e14664fb91b80031a941747724b7

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update a comment found in self review. #

Total comments: 11

Patch Set 3 : Source filters are disabled for client. Filtering new android files. #

Patch Set 4 : Adding RuntimeDidShutdown to allow the runtime to keep the management of the TaskScheduler lifetime. #

Patch Set 5 : Need to override the Delegate destructor method. #

Patch Set 6 : Adding missing libs for android clients. Some will be for future use as this progresses. #

Patch Set 7 : Unit tests need to link with android. #

Total comments: 25

Patch Set 8 : Fixing up the CL based on feedback, adding comments. Renamed to log_writer() #

Patch Set 9 : Fixing up the CL based on feedback, adding comments. Renamed to log_writer() #

Patch Set 10 : Missed out on a () #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -472 lines) Patch
M remoting/android/BUILD.gn View 1 chunk +0 lines, -45 lines 0 comments Download
M remoting/android/remoting_apk_tmpl.gni View 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/BUILD.gn View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M remoting/client/chromoting_client_runtime.h View 1 2 3 4 5 6 7 4 chunks +46 lines, -28 lines 0 comments Download
M remoting/client/chromoting_client_runtime.cc View 1 2 3 4 5 6 7 8 9 1 chunk +101 lines, -33 lines 0 comments Download
M remoting/client/chromoting_client_runtime_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -8 lines 0 comments Download
A remoting/client/jni/BUILD.gn View 1 chunk +60 lines, -0 lines 1 comment Download
M remoting/client/jni/chromoting_jni_instance.h View 3 chunks +4 lines, -5 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 3 4 5 6 7 8 9 26 chunks +44 lines, -45 lines 0 comments Download
D remoting/client/jni/chromoting_jni_runtime.h View 1 chunk +0 lines, -97 lines 0 comments Download
D remoting/client/jni/chromoting_jni_runtime.cc View 1 chunk +0 lines, -154 lines 0 comments Download
M remoting/client/jni/jni_client.h View 3 chunks +3 lines, -4 lines 0 comments Download
M remoting/client/jni/jni_client.cc View 4 chunks +11 lines, -14 lines 0 comments Download
M remoting/client/jni/jni_gl_display_handler.h View 2 chunks +3 lines, -4 lines 0 comments Download
M remoting/client/jni/jni_gl_display_handler.cc View 5 chunks +9 lines, -10 lines 0 comments Download
M remoting/client/jni/jni_pairing_secret_fetcher.h View 3 chunks +4 lines, -5 lines 0 comments Download
M remoting/client/jni/jni_pairing_secret_fetcher.cc View 1 chunk +12 lines, -15 lines 0 comments Download
A remoting/client/jni/jni_runtime_delegate.h View 1 2 3 4 1 chunk +70 lines, -0 lines 0 comments Download
A remoting/client/jni/jni_runtime_delegate.cc View 1 2 3 4 5 6 7 1 chunk +118 lines, -0 lines 0 comments Download
M remoting/client/jni/remoting_jni_registrar.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 75 (65 generated)
nicholss
PTAL! Thanks! https://codereview.chromium.org/2745583008/diff/1/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (right): https://codereview.chromium.org/2745583008/diff/1/remoting/client/jni/chromoting_jni_instance.h#newcode50 remoting/client/jni/chromoting_jni_instance.h:50: ChromotingJniInstance(base::WeakPtr<JniClient> jni_client, So this is a change ...
3 years, 9 months ago (2017-03-10 19:04:28 UTC) #1
Yuwei
Thanks for cleaning up the runtime :) https://codereview.chromium.org/2745583008/diff/1/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (right): https://codereview.chromium.org/2745583008/diff/1/remoting/client/jni/chromoting_jni_instance.h#newcode50 remoting/client/jni/chromoting_jni_instance.h:50: ChromotingJniInstance(base::WeakPtr<JniClient> jni_client, ...
3 years, 9 months ago (2017-03-10 20:18:53 UTC) #15
nicholss
https://codereview.chromium.org/2745583008/diff/20001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/2745583008/diff/20001/remoting/client/chromoting_client_runtime.cc#newcode50 remoting/client/chromoting_client_runtime.cc:50: ui_loop_.reset(base::MessageLoopForUI::current()); On 2017/03/10 20:18:53, Yuwei wrote: > I personally ...
3 years, 9 months ago (2017-03-10 20:53:11 UTC) #16
Sergey Ulanov
https://codereview.chromium.org/2745583008/diff/20001/remoting/client/chromoting_client_runtime.h File remoting/client/chromoting_client_runtime.h (right): https://codereview.chromium.org/2745583008/diff/20001/remoting/client/chromoting_client_runtime.h#newcode65 remoting/client/chromoting_client_runtime.h:65: // TODO(nicholss): GetLogWriter is not like the above methods, ...
3 years, 9 months ago (2017-03-14 19:09:38 UTC) #44
Yuwei
https://codereview.chromium.org/2745583008/diff/200001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/2745583008/diff/200001/remoting/client/chromoting_client_runtime.cc#newcode34 remoting/client/chromoting_client_runtime.cc:34: // Make sure TaskScheduler is initialized. Please be aware ...
3 years, 9 months ago (2017-03-14 19:40:16 UTC) #45
nicholss
Thanks for the feedback, updated now. PTAL https://codereview.chromium.org/2745583008/diff/200001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/2745583008/diff/200001/remoting/client/chromoting_client_runtime.cc#newcode34 remoting/client/chromoting_client_runtime.cc:34: // Make ...
3 years, 9 months ago (2017-03-14 22:56:45 UTC) #56
Sergey Ulanov
lgtm, but please see my comments https://codereview.chromium.org/2745583008/diff/200001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/2745583008/diff/200001/remoting/client/chromoting_client_runtime.cc#newcode86 remoting/client/chromoting_client_runtime.cc:86: delegate_->RuntimeDidShutdown(); On 2017/03/14 ...
3 years, 9 months ago (2017-03-16 07:23:50 UTC) #69
Yuwei
LGTM Don't forget to verify that the host connection scenario doesn't crash for unknown reason ...
3 years, 9 months ago (2017-03-16 08:38:53 UTC) #70
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/2745583008/300001
3 years, 9 months ago (2017-03-17 17:18:30 UTC) #72
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 18:49:31 UTC) #75
Message was sent while issue was closed.
Committed patchset #10 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/825f7ebf3ad0e14664fb91b80031...

Powered by Google App Engine
This is Rietveld 408576698