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

Issue 555093002: Fix WeakPtrFactory ordering problems in src/tools (Closed)

Created:
6 years, 3 months ago by anujsharma
Modified:
6 years, 3 months ago
CC:
lgombos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix WeakPtrFactory ordering problems in src/tools Cleaning up weak_ptr_factory destruction order in "src/tools" module. WeakPtrFactory should remain the last member so it'll be destroyed and invalidate its weak pointers before any other members are destroyed. BUG=303818 Committed: https://crrev.com/efd2db86e9ac9e90c8cd2641f188a9c420edf2be Cr-Commit-Position: refs/heads/master@{#294117}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added the comment explaining WeakPtrFactory ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -8 lines) Patch
M tools/android/forwarder2/device_controller.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M tools/android/forwarder2/device_controller.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/android/forwarder2/self_deleter_helper.h View 1 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
anujsharma
digit@chromium.org: Please review changes in src/tools module darin@chromium.org: Please review changes in rc/tools module
6 years, 3 months ago (2014-09-09 14:08:03 UTC) #2
anujsharma
On 2014/09/09 14:08:03, anujsharma wrote: > mailto:digit@chromium.org: Please review changes in src/tools module > > ...
6 years, 3 months ago (2014-09-09 14:08:16 UTC) #3
digit1
lgtm https://codereview.chromium.org/555093002/diff/1/tools/android/forwarder2/device_controller.h File tools/android/forwarder2/device_controller.h (right): https://codereview.chromium.org/555093002/diff/1/tools/android/forwarder2/device_controller.h#newcode60 tools/android/forwarder2/device_controller.h:60: base::WeakPtrFactory<DeviceController> weak_ptr_factory_; lgtm, but you probably want to ...
6 years, 3 months ago (2014-09-09 14:50:00 UTC) #4
anujsharma
On 2014/09/09 14:50:00, digit1 wrote: > lgtm > > https://codereview.chromium.org/555093002/diff/1/tools/android/forwarder2/device_controller.h > File tools/android/forwarder2/device_controller.h (right): > ...
6 years, 3 months ago (2014-09-10 04:58:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anujk.sharma@samsung.com/555093002/20001
6 years, 3 months ago (2014-09-10 05:01:48 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as c34b424b2ebe4a04dd877678ea25dc496431761b
6 years, 3 months ago (2014-09-10 06:09:01 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 06:12:00 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/efd2db86e9ac9e90c8cd2641f188a9c420edf2be
Cr-Commit-Position: refs/heads/master@{#294117}

Powered by Google App Engine
This is Rietveld 408576698