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 1764503002: Adding container class for chromoting client runtimes. (Closed)

Created:
4 years, 9 months ago by nicholss
Modified:
4 years, 9 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
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

Adding container class for chromoting client runtimes. R=lambroslambrou@chromium.org Committed: https://crrev.com/b34c0f6877af54e8bdd6052bf8934dd46a3b5899 Cr-Commit-Position: refs/heads/master@{#380979}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Updated based on feedback. Removed unused includes. #

Total comments: 6

Patch Set 3 : Moving impl to iOS, adding public interface. #

Total comments: 4

Patch Set 4 : Removing ios version, using runtime in jni runtime. #

Total comments: 1

Patch Set 5 : MessageLoop for other platforms do not have ForUI #

Patch Set 6 : Correcting jni. #

Patch Set 7 : Adding checks for OS when binding the UI thread. #

Patch Set 8 : UI and Display threads are two threads now. #

Patch Set 9 : URLRequestContextGetter is not supported for NACL. #

Patch Set 10 : Moving sources to remoting_client_standalone_sources. #

Patch Set 11 : Cleaning up after moving src to standalone. #

Patch Set 12 : Android and iOS both use MessageLoopForUI directly now. #

Total comments: 2

Patch Set 13 : Chromoting Client Context is no longer a singleton. #

Patch Set 14 : Scope was not set on new ChromotingClientRuntime. #

Patch Set 15 : Adding a unit test to make debugging easier. #

Patch Set 16 : Jni runtime now holds a scoped_ptr<ChromotingClientRuntime>. #

Total comments: 6

Patch Set 17 : Unit test is only for mobile at the moment. #

Patch Set 18 : Cleaning up the unit test. #

Total comments: 12

Patch Set 19 : Refactored the MessageLoopForUI out of the runtime class. #

Patch Set 20 : Use new impl of ClientRuntime in jni runtime. #

Patch Set 21 : Fixing type of pointer. #

Patch Set 22 : Following chromium guidlines for pointers. #

Total comments: 1

Patch Set 23 : Moving usage comment to .h file. Now more simple. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -46 lines) Patch
M remoting/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
A remoting/client/chromoting_client_runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +88 lines, -0 lines 0 comments Download
A remoting/client/chromoting_client_runtime.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +53 lines, -0 lines 0 comments Download
A remoting/client/chromoting_client_runtime_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +39 lines, -0 lines 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +10 lines, -11 lines 0 comments Download
M remoting/client/jni/chromoting_jni_runtime.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 11 chunks +34 lines, -35 lines 0 comments Download
M remoting/remoting_client.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M remoting/remoting_srcs.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
nicholss
https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc#newcode23 remoting/client/chromoting_client_runtime.cc:23: ChromotingClientRuntime::ChromotingClientRuntime() { I am going to be using this ...
4 years, 9 months ago (2016-03-03 00:55:16 UTC) #1
Lambros
https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc#newcode10 remoting/client/chromoting_client_runtime.cc:10: #include "base/synchronization/waitable_event.h" not used? https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc#newcode11 remoting/client/chromoting_client_runtime.cc:11: #include "net/url_request/url_request_context.h" not ...
4 years, 9 months ago (2016-03-03 19:15:08 UTC) #4
nicholss
On 2016/03/03 19:15:08, Lambros wrote: > https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc > File remoting/client/chromoting_client_runtime.cc (right): > > https://codereview.chromium.org/1764503002/diff/1/remoting/client/chromoting_client_runtime.cc#newcode10 > ...
4 years, 9 months ago (2016-03-03 19:36:45 UTC) #5
Lambros
I'm not sure about the inheritance model, but everything else LG. Defer to Sergey for ...
4 years, 9 months ago (2016-03-03 21:57:22 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc#newcode14 remoting/client/chromoting_client_runtime.cc:14: void DoNothing() { Please use base::DoNothing(). https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc#newcode49 remoting/client/chromoting_client_runtime.cc:49: return ...
4 years, 9 months ago (2016-03-04 22:50:17 UTC) #7
nicholss
I am about to push a new change that uses this runtime in the jni ...
4 years, 9 months ago (2016-03-07 18:32:36 UTC) #8
nicholss
https://codereview.chromium.org/1764503002/diff/60001/remoting/client/jni/chromoting_jni_runtime.h File remoting/client/jni/chromoting_jni_runtime.h (right): https://codereview.chromium.org/1764503002/diff/60001/remoting/client/jni/chromoting_jni_runtime.h#newcode37 remoting/client/jni/chromoting_jni_runtime.h:37: return runtime_-ui_task_runner(); Doing this to be backwards compatible.
4 years, 9 months ago (2016-03-07 18:41:56 UTC) #9
nicholss
PTAL. I have moved my simple thread containing class into a container that is used ...
4 years, 9 months ago (2016-03-08 16:44:29 UTC) #11
Sergey Ulanov
I still don't think we want to add any singletons. https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc#newcode49 ...
4 years, 9 months ago (2016-03-08 18:53:46 UTC) #12
nicholss
I think that make it good? https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/20001/remoting/client/chromoting_client_runtime.cc#newcode49 remoting/client/chromoting_client_runtime.cc:49: return base::Singleton<ChromotingClientRuntime>::get(); On ...
4 years, 9 months ago (2016-03-08 21:20:25 UTC) #13
nicholss
PTAL
4 years, 9 months ago (2016-03-08 23:36:20 UTC) #14
Lambros
https://codereview.chromium.org/1764503002/diff/300001/remoting/client/chromoting_client_runtime_unittest.cc File remoting/client/chromoting_client_runtime_unittest.cc (right): https://codereview.chromium.org/1764503002/diff/300001/remoting/client/chromoting_client_runtime_unittest.cc#newcode22 remoting/client/chromoting_client_runtime_unittest.cc:22: EXPECT_TRUE(runtime); EXPECT_TRUE(x); if (!x) return; can be replaced with ...
4 years, 9 months ago (2016-03-09 00:06:18 UTC) #15
nicholss
https://codereview.chromium.org/1764503002/diff/300001/remoting/client/chromoting_client_runtime_unittest.cc File remoting/client/chromoting_client_runtime_unittest.cc (right): https://codereview.chromium.org/1764503002/diff/300001/remoting/client/chromoting_client_runtime_unittest.cc#newcode22 remoting/client/chromoting_client_runtime_unittest.cc:22: EXPECT_TRUE(runtime); On 2016/03/09 00:06:18, Lambros wrote: > EXPECT_TRUE(x); if ...
4 years, 9 months ago (2016-03-09 16:54:28 UTC) #16
nicholss
PTAL?
4 years, 9 months ago (2016-03-10 00:13:51 UTC) #17
Lambros
lgtm, please see comments https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc#newcode23 remoting/client/chromoting_client_runtime.cc:23: base::MessageLoopForUI::current()->Attach(); ui_loop_->Attach(); maybe? https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc#newcode29 remoting/client/chromoting_client_runtime.cc:29: ...
4 years, 9 months ago (2016-03-10 00:52:15 UTC) #18
Sergey Ulanov
LGTM, when my comments are addressed. https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc#newcode18 remoting/client/chromoting_client_runtime.cc:18: if (!base::MessageLoop::current()) { ...
4 years, 9 months ago (2016-03-11 01:22:34 UTC) #19
nicholss
I think this is ready. https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/340001/remoting/client/chromoting_client_runtime.cc#newcode18 remoting/client/chromoting_client_runtime.cc:18: if (!base::MessageLoop::current()) { On ...
4 years, 9 months ago (2016-03-11 21:23:02 UTC) #20
Sergey Ulanov
lgtm https://codereview.chromium.org/1764503002/diff/420001/remoting/client/chromoting_client_runtime.cc File remoting/client/chromoting_client_runtime.cc (right): https://codereview.chromium.org/1764503002/diff/420001/remoting/client/chromoting_client_runtime.cc#newcode14 remoting/client/chromoting_client_runtime.cc:14: // Caller to create is responsible for creating ...
4 years, 9 months ago (2016-03-11 21:41:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1764503002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1764503002/440001
4 years, 9 months ago (2016-03-11 22:52:20 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years, 9 months ago (2016-03-12 00:53:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1764503002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1764503002/440001
4 years, 9 months ago (2016-03-14 14:46:28 UTC) #28
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 9 months ago (2016-03-14 15:41:13 UTC) #30
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/b34c0f6877af54e8bdd6052bf8934dd46a3b5899 Cr-Commit-Position: refs/heads/master@{#380979}
4 years, 9 months ago (2016-03-14 15:42:24 UTC) #32
Lambros
4 years, 9 months ago (2016-03-21 20:39:49 UTC) #33
Message was sent while issue was closed.
A revert of this CL (patchset #23 id:440001) has been created in
https://codereview.chromium.org/1821623003/ by lambroslambrou@chromium.org.

The reason for reverting is: Broke Android client and tests - see bug 596240..

Powered by Google App Engine
This is Rietveld 408576698