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

Issue 10454040: Replace ScopedThreadProxy with MessageLoopProxy & WeakPtrs. (Closed)

Created:
8 years, 7 months ago by Wez
Modified:
8 years, 6 months ago
Reviewers:
Sergey Ulanov
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, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Replace ScopedThreadProxy with MessageLoopProxy & WeakPtrs. This affects the following classes: * ChromotingClient * ChromotingInstance * HostUserInterface * It2MeHostUserInterface The MessageLoopProxy/WeakPtr combination requires that the WeakPtr is created on the thread referred to by the proxy; code in which that is hard to arrange usually has subtle race-conditions. TEST=Existing unit-tests, and manual testing. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139623

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address comments. #

Total comments: 5

Patch Set 3 : Address review points and tweak comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -244 lines) Patch
D remoting/base/scoped_thread_proxy.h View 1 chunk +0 lines, -73 lines 0 comments Download
D remoting/base/scoped_thread_proxy.cc View 1 chunk +0 lines, -86 lines 0 comments Download
M remoting/client/chromoting_client.h View 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 2 6 chunks +9 lines, -6 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.h View 2 chunks +1 line, -2 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 8 chunks +29 lines, -28 lines 0 comments Download
M remoting/host/desktop_environment.h View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/host_user_interface.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/host/host_user_interface.cc View 1 6 chunks +18 lines, -12 lines 0 comments Download
M remoting/host/it2me_host_user_interface.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/it2me_host_user_interface.cc View 1 4 chunks +14 lines, -27 lines 0 comments Download
M remoting/remoting.gyp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Wez
8 years, 7 months ago (2012-05-26 02:41:57 UTC) #1
Sergey Ulanov
http://codereview.chromium.org/10454040/diff/1/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/10454040/diff/1/remoting/client/plugin/chromoting_instance.cc#newcode100 remoting/client/plugin/chromoting_instance.cc:100: static scoped_refptr<base::MessageLoopProxy> g_logging_message_loop; This adds a static finalizer. Use ...
8 years, 6 months ago (2012-05-29 18:58:29 UTC) #2
Wez
http://codereview.chromium.org/10454040/diff/1/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/10454040/diff/1/remoting/client/plugin/chromoting_instance.cc#newcode100 remoting/client/plugin/chromoting_instance.cc:100: static scoped_refptr<base::MessageLoopProxy> g_logging_message_loop; On 2012/05/29 18:58:30, sergeyu wrote: > ...
8 years, 6 months ago (2012-05-30 00:18:39 UTC) #3
Sergey Ulanov
LGTM http://codereview.chromium.org/10454040/diff/7002/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/10454040/diff/7002/remoting/client/plugin/chromoting_instance.cc#newcode102 remoting/client/plugin/chromoting_instance.cc:102: CR_DEFINE_STATIC_LOCAL(base::WeakPtr<ChromotingInstance>, g_logging_instance, nit: Might be more readable if ...
8 years, 6 months ago (2012-05-30 00:30:36 UTC) #4
Wez
http://codereview.chromium.org/10454040/diff/7002/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/10454040/diff/7002/remoting/client/plugin/chromoting_instance.cc#newcode102 remoting/client/plugin/chromoting_instance.cc:102: CR_DEFINE_STATIC_LOCAL(base::WeakPtr<ChromotingInstance>, g_logging_instance, On 2012/05/30 00:30:37, sergeyu wrote: > nit: ...
8 years, 6 months ago (2012-05-30 00:54:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/10454040/8013
8 years, 6 months ago (2012-05-30 00:54:29 UTC) #6
commit-bot: I haz the power
Try job failure for 10454040-8013 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-05-30 03:16:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/10454040/8013
8 years, 6 months ago (2012-05-30 17:16:10 UTC) #8
commit-bot: I haz the power
8 years, 6 months ago (2012-05-30 20:52:14 UTC) #9
Change committed as 139623

Powered by Google App Engine
This is Rietveld 408576698