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

Issue 569593002: Maintaining the proper order of initialization WeakPtrFactory in "src/remoting" (Closed)

Created:
6 years, 3 months ago by ARUNKK
Modified:
6 years, 3 months ago
Reviewers:
Wez
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Maintaining the proper order of initialization WeakPtrFactory in "src/remoting" Changing in the intialization order of WeakPtrFactory in "src/remoting" module such that all member variables should appear before the WeakPtrFactory to ensure that any WeakPtrs to Controller are invalidated before its members variable's destructors are executed, rendering them invalid. BUG=303818 Committed: https://crrev.com/933aeaf09f92c177ee5f172724f8c1955467ef0e Cr-Commit-Position: refs/heads/master@{#295868}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Review comments #

Patch Set 3 : Renameing the control_factory_ -> weak_factory_ . #

Patch Set 4 : . #

Total comments: 1

Patch Set 5 : Review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -16 lines) Patch
M remoting/host/client_session.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/desktop_session_agent.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/host/desktop_session_agent.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/win/host_service.h View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 25 (9 generated)
ARUNKK
sergeyu@chromium.org: Please review changes in wez@chromium.org: Please review changes in PTAL.
6 years, 3 months ago (2014-09-12 13:32:17 UTC) #2
Wez
Please don't add multiple reviewers on a review unless there is a specific reason to ...
6 years, 3 months ago (2014-09-12 16:39:58 UTC) #3
Wez
https://codereview.chromium.org/569593002/diff/1/remoting/client/jni/chromoting_jni_instance.h File remoting/client/jni/chromoting_jni_instance.h (left): https://codereview.chromium.org/569593002/diff/1/remoting/client/jni/chromoting_jni_instance.h#oldcode156 remoting/client/jni/chromoting_jni_instance.h:156: scoped_ptr<base::WeakPtrFactory<JniFrameConsumer> > view_weak_factory_; This needs to stay where it ...
6 years, 3 months ago (2014-09-12 18:21:52 UTC) #5
ARUNKK
PTAL. https://codereview.chromium.org/569593002/diff/1/remoting/host/desktop_session_agent.h File remoting/host/desktop_session_agent.h (right): https://codereview.chromium.org/569593002/diff/1/remoting/host/desktop_session_agent.h#newcode229 remoting/host/desktop_session_agent.h:229: base::WeakPtrFactory<ClientSessionControl> control_factory_; On 2014/09/12 18:21:52, Wez wrote: > ...
6 years, 3 months ago (2014-09-17 04:52:16 UTC) #8
Wez
nit: Please correct the spelling in the CL description - thanks!
6 years, 3 months ago (2014-09-18 00:26:13 UTC) #9
Wez
https://codereview.chromium.org/569593002/diff/1/remoting/host/desktop_session_agent.h File remoting/host/desktop_session_agent.h (right): https://codereview.chromium.org/569593002/diff/1/remoting/host/desktop_session_agent.h#newcode229 remoting/host/desktop_session_agent.h:229: base::WeakPtrFactory<ClientSessionControl> control_factory_; On 2014/09/17 04:52:16, kulkarni.a wrote: > On ...
6 years, 3 months ago (2014-09-18 00:27:56 UTC) #10
ARUNKK
Hi Wez, Thanks for review. Renaming is done. PTAL.
6 years, 3 months ago (2014-09-18 04:10:00 UTC) #11
Wez
https://codereview.chromium.org/569593002/diff/60001/remoting/host/client_session.h File remoting/host/client_session.h (left): https://codereview.chromium.org/569593002/diff/60001/remoting/host/client_session.h#oldcode214 remoting/host/client_session.h:214: base::WeakPtrFactory<protocol::ClipboardStub> client_clipboard_factory_; This can stay where it is, since ...
6 years, 3 months ago (2014-09-18 17:53:57 UTC) #12
ARUNKK
PTAL.
6 years, 3 months ago (2014-09-19 07:04:39 UTC) #13
Wez
lgtm https://codereview.chromium.org/569593002/diff/80001/remoting/host/win/host_service.h File remoting/host/win/host_service.h (right): https://codereview.chromium.org/569593002/diff/80001/remoting/host/win/host_service.h#newcode119 remoting/host/win/host_service.h:119: base::WeakPtr<HostService> weak_ptr_; nit: The WeakPtrFactory comment below still ...
6 years, 3 months ago (2014-09-19 18:23:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/569593002/80001
6 years, 3 months ago (2014-09-20 02:40:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/569593002/80001
6 years, 3 months ago (2014-09-20 02:40:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/569593002/80001
6 years, 3 months ago (2014-09-20 05:28:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/569593002/80001
6 years, 3 months ago (2014-09-20 08:59:43 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001) as a6b4615ab8482afaa9feee955dd0045af00ad22e
6 years, 3 months ago (2014-09-20 13:19:24 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-20 13:20:21 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/933aeaf09f92c177ee5f172724f8c1955467ef0e
Cr-Commit-Position: refs/heads/master@{#295868}

Powered by Google App Engine
This is Rietveld 408576698