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

Issue 11018004: Fix ChromotingHost and DesktopEnvironmentFactory references to TaskRunners. (Closed)

Created:
8 years, 2 months ago by Wez
Modified:
8 years, 2 months 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

Fix ChromotingHost and DesktopEnvironmentFactory references to TaskRunners. These classes previously referenced TaskRunners indirectly via a supplied ChromotingHostContext, causing them to fail unexpectedly when trying to use the TaskRunners after they had been detached from the ChromotingHostContext during shutdown. This CL has them take their own references to the TaskRunners they need. This CL also renames the "desktop" TaskRunner to "input" TaskRunner, reflecting its current purpose. BUG=145856 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159771

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address review comments. #

Patch Set 3 : Add missing base class initialization. #

Patch Set 4 : Fix Create() call #

Total comments: 2

Patch Set 5 : Fix Windows build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -120 lines) Patch
M remoting/host/chromoting_host.h View 1 5 chunks +15 lines, -6 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 20 chunks +45 lines, -37 lines 0 comments Download
M remoting/host/chromoting_host_context.h View 5 chunks +11 lines, -10 lines 0 comments Download
M remoting/host/chromoting_host_context.cc View 6 chunks +12 lines, -12 lines 0 comments Download
M remoting/host/chromoting_host_context_unittest.cc View 1 chunk +5 lines, -1 line 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 4 chunks +12 lines, -9 lines 0 comments Download
M remoting/host/desktop_environment_factory.h View 1 chunk +12 lines, -4 lines 0 comments Download
M remoting/host/desktop_environment_factory.cc View 1 1 chunk +8 lines, -8 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 5 chunks +14 lines, -3 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 3 chunks +11 lines, -5 lines 0 comments Download
M remoting/host/simple_host_process.cc View 3 chunks +15 lines, -13 lines 0 comments Download
M remoting/host/win/session_desktop_environment_factory.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M remoting/host/win/session_desktop_environment_factory.cc View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M remoting/remoting.gyp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Wez
PTAL; this is necessary before I can land the AutoThread CL.
8 years, 2 months ago (2012-09-29 03:27:02 UTC) #1
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/11018004/diff/1/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): https://chromiumcodereview.appspot.com/11018004/diff/1/remoting/host/chromoting_host.h#newcode11 remoting/host/chromoting_host.h:11: #include "base/memory/scoped_ptr.h" Add base/memory/ref_counted.h https://chromiumcodereview.appspot.com/11018004/diff/1/remoting/host/chromoting_host.h#newcode67 remoting/host/chromoting_host.h:67: // The caller ...
8 years, 2 months ago (2012-10-01 18:31:34 UTC) #2
Wez
https://chromiumcodereview.appspot.com/11018004/diff/1/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): https://chromiumcodereview.appspot.com/11018004/diff/1/remoting/host/chromoting_host.h#newcode11 remoting/host/chromoting_host.h:11: #include "base/memory/scoped_ptr.h" On 2012/10/01 18:31:34, alexeypa wrote: > Add ...
8 years, 2 months ago (2012-10-02 05:19:44 UTC) #3
alexeypa (please no reviews)
lgtm https://chromiumcodereview.appspot.com/11018004/diff/13001/remoting/host/chromoting_host.h File remoting/host/chromoting_host.h (right): https://chromiumcodereview.appspot.com/11018004/diff/13001/remoting/host/chromoting_host.h#newcode70 remoting/host/chromoting_host.h:70: // |shutdown_task| supplied to Shutdown() has been notified. ...
8 years, 2 months ago (2012-10-02 17:00:12 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/11018004/19001
8 years, 2 months ago (2012-10-02 18:21:47 UTC) #5
commit-bot: I haz the power
8 years, 2 months ago (2012-10-02 21:26:43 UTC) #6
Change committed as 159771

Powered by Google App Engine
This is Rietveld 408576698