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

Issue 19967007: Various improvements to the Chromoting Android app (Closed)

Created:
7 years, 5 months ago by solb
Modified:
7 years, 5 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Various improvements to the Chromoting Android app This commit introduces several changes: - Renames the ChromotingJni class to ChromotingJniRuntime and stores a reference to the instance in the other classes - Resolves a memory leak in JniFrameConsumer::ApplyBuffer by wrapping the buffer in a scoped_ptr - Make the canvas activity display full screen, hiding the status bar and action bar to devote more space to the remote desktop - Clarify the error message that is displayed when no hosts are registered with the logged in account Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213397

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rename ChromotingJni, wrap ApplyBuffer's buffer in a scoped_ptr, fullscreen canvas activity #

Total comments: 5

Patch Set 3 : Store singleton reference in ChromotingJniInstance, eliminate unnecessary ptr reset #

Patch Set 4 : Put reset() back with explanation #

Total comments: 4

Patch Set 5 : Add comments to clarify ChromotingJniRuntime pointer lifetimes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -384 lines) Patch
M remoting/android/java/AndroidManifest.xml View 1 2 chunks +4 lines, -3 lines 0 comments Download
remoting/client/jni/chromoting_jni.h View 1 1 chunk +0 lines, -116 lines 0 comments Download
D remoting/client/jni/chromoting_jni.cc View 1 1 chunk +0 lines, -145 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.h View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 12 chunks +44 lines, -55 lines 0 comments Download
A + remoting/client/jni/chromoting_jni_runtime.h View 1 4 chunks +8 lines, -8 lines 0 comments Download
A + remoting/client/jni/chromoting_jni_runtime.cc View 1 2 8 chunks +15 lines, -12 lines 0 comments Download
M remoting/client/jni/jni_frame_consumer.h View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M remoting/client/jni/jni_frame_consumer.cc View 1 2 3 4 5 chunks +22 lines, -22 lines 0 comments Download
M remoting/client/jni/jni_interface.cc View 1 8 chunks +9 lines, -9 lines 0 comments Download
M remoting/remoting.gyp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/resources/strings.xml View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
solb
Here's my response to your latest comments on https://codereview.chromium.org/19297003.
7 years, 5 months ago (2013-07-22 22:49:13 UTC) #1
Wez
https://codereview.chromium.org/19967007/diff/1/remoting/client/jni/jni_frame_consumer.cc File remoting/client/jni/jni_frame_consumer.cc (right): https://codereview.chromium.org/19967007/diff/1/remoting/client/jni/jni_frame_consumer.cc#newcode77 remoting/client/jni/jni_frame_consumer.cc:77: delete buffer; Rather than explicitly delete, assign |buffer| to ...
7 years, 5 months ago (2013-07-23 03:53:06 UTC) #2
solb
https://codereview.chromium.org/19967007/diff/1/remoting/client/jni/jni_frame_consumer.cc File remoting/client/jni/jni_frame_consumer.cc (right): https://codereview.chromium.org/19967007/diff/1/remoting/client/jni/jni_frame_consumer.cc#newcode77 remoting/client/jni/jni_frame_consumer.cc:77: delete buffer; On 2013/07/23 03:53:06, Wez wrote: > Rather ...
7 years, 5 months ago (2013-07-23 19:01:10 UTC) #3
Wez
nit: The sense of your CL description differs between the 1st & 2nd and 3rd ...
7 years, 5 months ago (2013-07-23 19:51:38 UTC) #4
Wez
https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/chromoting_jni_instance.cc File remoting/client/jni/chromoting_jni_instance.cc (right): https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/chromoting_jni_instance.cc#newcode25 remoting/client/jni/chromoting_jni_instance.cc:25: DCHECK(ChromotingJniRuntime::GetInstance()-> This seems to be using the GetInstance() model, ...
7 years, 5 months ago (2013-07-23 19:59:07 UTC) #5
solb
https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/chromoting_jni_instance.cc File remoting/client/jni/chromoting_jni_instance.cc (right): https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/chromoting_jni_instance.cc#newcode25 remoting/client/jni/chromoting_jni_instance.cc:25: DCHECK(ChromotingJniRuntime::GetInstance()-> On 2013/07/23 19:59:07, Wez wrote: > This seems ...
7 years, 5 months ago (2013-07-23 20:50:28 UTC) #6
Wez
https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/jni_frame_consumer.cc File remoting/client/jni/jni_frame_consumer.cc (right): https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/jni_frame_consumer.cc#newcode78 remoting/client/jni/jni_frame_consumer.cc:78: buffer_scoped.reset(); On 2013/07/23 20:50:28, solb wrote: > On 2013/07/23 ...
7 years, 5 months ago (2013-07-23 20:53:01 UTC) #7
solb
On 2013/07/23 20:53:01, Wez wrote: > https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/jni_frame_consumer.cc > File remoting/client/jni/jni_frame_consumer.cc (right): > > https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/jni_frame_consumer.cc#newcode78 > ...
7 years, 5 months ago (2013-07-23 20:59:50 UTC) #8
Wez
On 2013/07/23 20:59:50, solb wrote: > On 2013/07/23 20:53:01, Wez wrote: > > > https://codereview.chromium.org/19967007/diff/13001/remoting/client/jni/jni_frame_consumer.cc ...
7 years, 5 months ago (2013-07-23 21:05:19 UTC) #9
solb
On 2013/07/23 21:05:19, Wez wrote: > On 2013/07/23 20:59:50, solb wrote: > > On 2013/07/23 ...
7 years, 5 months ago (2013-07-23 21:20:02 UTC) #10
Wez
lgtm https://codereview.chromium.org/19967007/diff/29002/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (right): https://codereview.chromium.org/19967007/diff/29002/remoting/client/jni/chromoting_jni_instance.h#newcode40 remoting/client/jni/chromoting_jni_instance.h:40: ChromotingJniInstance(ChromotingJniRuntime* jni_runtime, nit: Clarify the lifetime requirement on ...
7 years, 5 months ago (2013-07-24 00:13:27 UTC) #11
solb
https://codereview.chromium.org/19967007/diff/29002/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (right): https://codereview.chromium.org/19967007/diff/29002/remoting/client/jni/chromoting_jni_instance.h#newcode40 remoting/client/jni/chromoting_jni_instance.h:40: ChromotingJniInstance(ChromotingJniRuntime* jni_runtime, On 2013/07/24 00:13:28, Wez wrote: > nit: ...
7 years, 5 months ago (2013-07-24 00:46:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/solb@chromium.org/19967007/65001
7 years, 5 months ago (2013-07-24 03:54:24 UTC) #13
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 10:42:34 UTC) #14
Message was sent while issue was closed.
Change committed as 213397

Powered by Google App Engine
This is Rietveld 408576698