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

Issue 11412305: Use AutoThread in ChromotingHostContext & NPAPI plugin. (Closed)

Created:
8 years ago by Wez
Modified:
8 years ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+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, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Use AutoThread in ChromotingHostContext & NPAPI plugin. Callers now create ChromotingHostContext to create a set of threads for host tasks to run on, and pass the threads' TaskRunners to each host component explicitly. The ChromotingHostContext can then be torn down as soon as the caller no longer needs to create new components using the threads, and the threads themselves will exit only when the created components no longer require them. This is a re-re-land of 11094056; the re-land failed due to a rebasing typo, and some over-zealous thread checking in ChromotingHostContext. BUG=145856 TEST=Chromoting IT2Me & Me2Me hosts start correctly, can be connected to, and shutdown cleanly. Unit-tests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171358

Patch Set 1 : Re-land. #

Patch Set 2 : Fix ChromotingHostContext startup-check and thread checks in getters. #

Total comments: 12

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -214 lines) Patch
M remoting/host/chromoting_host_context.h View 1 2 2 chunks +37 lines, -52 lines 0 comments Download
M remoting/host/chromoting_host_context.cc View 1 2 1 chunk +64 lines, -73 lines 0 comments Download
M remoting/host/chromoting_host_context_unittest.cc View 2 chunks +19 lines, -11 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 5 chunks +13 lines, -28 lines 0 comments Download
M remoting/host/desktop_environment_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 chunk +0 lines, -17 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M remoting/host/plugin/host_script_object.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 7 chunks +8 lines, -19 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
M remoting/host/win/session_desktop_environment_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Wez
PTAL
8 years ago (2012-12-03 20:20:23 UTC) #1
alexeypa (please no reviews)
Please make sure that you can actually run and connect to me2me and it2me hosts ...
8 years ago (2012-12-03 20:34:22 UTC) #2
Wez
Both IT2Me and Me2Me hosts work w/ this patch set. :) https://chromiumcodereview.appspot.com/11412305/diff/1012/remoting/host/chromoting_host_context.cc File remoting/host/chromoting_host_context.cc (right): ...
8 years ago (2012-12-03 22:38:45 UTC) #3
alexeypa (please no reviews)
lgtm
8 years ago (2012-12-04 16:30:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/11412305/9002
8 years ago (2012-12-05 19:11:09 UTC) #5
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years ago (2012-12-05 22:39:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/11412305/9002
8 years ago (2012-12-05 23:18:58 UTC) #7
commit-bot: I haz the power
8 years ago (2012-12-05 23:40:57 UTC) #8
Message was sent while issue was closed.
Change committed as 171358

Powered by Google App Engine
This is Rietveld 408576698