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

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

Created:
8 years, 6 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. This is a re-land of CL 1045404, replacing some CR_DEFINE_STATIC_LOCAL() instances with base::LazyInstance to avoid adding global initializers or finalizers. TEST=Existing unit-tests, and manual testing. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141028

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use correct TaskRunner reference, and copy instance reference in lock. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -250 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 1 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 6 chunks +9 lines, -6 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 8 chunks +37 lines, -35 lines 0 comments Download
M remoting/host/host_user_interface.h View 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/host/host_user_interface.cc View 6 chunks +18 lines, -12 lines 0 comments Download
M remoting/host/it2me_host_user_interface.h View 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/it2me_host_user_interface.cc View 4 chunks +14 lines, -27 lines 0 comments Download
M remoting/remoting.gyp View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Wez
This is an attempt to re-land http://codereview.chromium.org/10454040/ using LazyInstance to avoid initializers and finalizers.
8 years, 6 months ago (2012-05-31 00:46:43 UTC) #1
Wez
On 2012/05/31 00:46:43, Wez wrote: > This is an attempt to re-land http://codereview.chromium.org/10454040/ using > ...
8 years, 6 months ago (2012-06-02 00:33:38 UTC) #2
Sergey Ulanov
LGTM when my comments are addressed http://codereview.chromium.org/10440107/diff/1/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/10440107/diff/1/remoting/client/plugin/chromoting_instance.cc#newcode666 remoting/client/plugin/chromoting_instance.cc:666: g_logging_task_runner.Get()->PostTask( This should ...
8 years, 6 months ago (2012-06-02 00:57:44 UTC) #3
Wez
http://codereview.chromium.org/10440107/diff/1/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/10440107/diff/1/remoting/client/plugin/chromoting_instance.cc#newcode666 remoting/client/plugin/chromoting_instance.cc:666: g_logging_task_runner.Get()->PostTask( On 2012/06/02 00:57:45, sergeyu wrote: > This should ...
8 years, 6 months ago (2012-06-07 16:28:53 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/10440107/10001
8 years, 6 months ago (2012-06-07 16:29:06 UTC) #5
commit-bot: I haz the power
8 years, 6 months ago (2012-06-07 17:40:10 UTC) #6
Change committed as 141028

Powered by Google App Engine
This is Rietveld 408576698