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

Issue 407403002: Chromoting: Synchronize connected/disconnected state between Java/C++ (Closed)

Created:
6 years, 5 months ago by Lambros
Modified:
6 years, 4 months ago
Reviewers:
Sergey Ulanov, Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Chromoting: Synchronize connected/disconnected state between Java/C++ If the connection was dropped (network error or similar), the session was not being cleaned up straight away. Instead, the cleanup was delayed until the next time Java tried to connect, by which time it had already popped open the progress dialog. This raised an incorrect disconnection notification that closed the progress dialog. This CL ensures that disconnection causes an immediate notification to Java, and the state is kept consistent between Java and C++ code. BUG=395301 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288967

Patch Set 1 #

Total comments: 8

Patch Set 2 : Move connection logic into Java #

Total comments: 6

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -15 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/Chromoting.java View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java View 1 2 5 chunks +40 lines, -8 lines 0 comments Download
M remoting/client/jni/chromoting_jni_instance.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Lambros
This seems a bit ugly as it stands. Feel free to suggest better ways of ...
6 years, 5 months ago (2014-07-23 01:35:22 UTC) #1
Sergey Ulanov
I'd prefer moving more logic to the java layer. Ideally Java layer should control lifetime ...
6 years, 5 months ago (2014-07-24 02:47:03 UTC) #2
Lambros
I agree with that approach. We're already using jni_generator but we could make better use ...
6 years, 5 months ago (2014-07-26 00:42:35 UTC) #3
Lambros
6 years, 4 months ago (2014-07-30 16:55:44 UTC) #4
Jamie
LGTM once my comments are addressed. https://codereview.chromium.org/407403002/diff/20001/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java File remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java (right): https://codereview.chromium.org/407403002/diff/20001/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java#newcode189 remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java:189: if (!sConnected) return; ...
6 years, 4 months ago (2014-07-30 17:22:04 UTC) #5
Lambros
https://codereview.chromium.org/407403002/diff/20001/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java File remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java (right): https://codereview.chromium.org/407403002/diff/20001/remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java#newcode189 remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java:189: if (!sConnected) return; On 2014/07/30 17:22:04, Jamie wrote: > ...
6 years, 4 months ago (2014-08-12 01:27:35 UTC) #6
Lambros
The CQ bit was checked by lambroslambrou@chromium.org
6 years, 4 months ago (2014-08-12 01:27:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/407403002/40001
6 years, 4 months ago (2014-08-12 01:33:37 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 14:50:59 UTC) #9
Message was sent while issue was closed.
Change committed as 288967

Powered by Google App Engine
This is Rietveld 408576698