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

Issue 497733002: Declaring the weak_ptr_factory in proper order. (Closed)

Created:
6 years, 4 months ago by Anand Ratn (left samsung)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, lgombos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Declaring the weak_ptr_factory in proper order. Cleaning up weak_ptr_factorydestruction order in "src/ash" 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/e8dea07883cf5cb9efa4c083495dd3de4abf3e14 Cr-Commit-Position: refs/heads/master@{#293450}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Changes are incorporated with the comments #

Total comments: 4

Patch Set 3 : Changes are incorporated in this patchset. #

Total comments: 2

Patch Set 4 : Reverting ash/shell.h #

Total comments: 2

Patch Set 5 : Adding instance method #

Patch Set 6 : updating unittests file #

Patch Set 7 : Removing Name Conflict #

Total comments: 4

Patch Set 8 : Updating method name #

Total comments: 2

Patch Set 9 : Maintaining function in proper order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -13 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/chromeos/brightness/tray_brightness.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/system/chromeos/brightness/tray_brightness.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -5 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (7 generated)
Anand Ratn (left samsung)
anand.ratn@samsung.com changed reviewers: + dmichael@chromium.org, oshima@chromium.org - kphanee@chromium.org, l.gombos@samsung.com, sivagunturi@chromium.org, sohanjg@chromium.org, vivek.vg@samsung.com
6 years, 3 months ago (2014-08-26 06:16:57 UTC) #1
Anand Ratn (left samsung)
oshima@chromium.org: Please review changes in src/ash module.
6 years, 3 months ago (2014-08-26 06:16:57 UTC) #2
oshima
https://codereview.chromium.org/497733002/diff/1/ash/shell.h File ash/shell.h (left): https://codereview.chromium.org/497733002/diff/1/ash/shell.h#oldcode703 ash/shell.h:703: weak_display_manager_factory_; This is for display_manager_, and defined after display_manager_, ...
6 years, 3 months ago (2014-08-26 15:31:05 UTC) #3
dmichael (off chromium)
https://codereview.chromium.org/497733002/diff/1/ash/shell.h File ash/shell.h (left): https://codereview.chromium.org/497733002/diff/1/ash/shell.h#oldcode703 ash/shell.h:703: weak_display_manager_factory_; On 2014/08/26 15:31:05, oshima wrote: > This is ...
6 years, 3 months ago (2014-08-26 15:34:52 UTC) #4
oshima
On 2014/08/26 15:34:52, dmichael wrote: > https://codereview.chromium.org/497733002/diff/1/ash/shell.h > File ash/shell.h (left): > > https://codereview.chromium.org/497733002/diff/1/ash/shell.h#oldcode703 > ...
6 years, 3 months ago (2014-08-26 16:33:52 UTC) #5
Anand Ratn (left samsung)
On 2014/08/26 16:33:52, oshima wrote: > On 2014/08/26 15:34:52, dmichael wrote: > > https://codereview.chromium.org/497733002/diff/1/ash/shell.h > ...
6 years, 3 months ago (2014-08-28 06:14:48 UTC) #6
Anand Ratn (left samsung)
PTAL. https://codereview.chromium.org/497733002/diff/1/ash/shell.h File ash/shell.h (left): https://codereview.chromium.org/497733002/diff/1/ash/shell.h#oldcode703 ash/shell.h:703: weak_display_manager_factory_; On 2014/08/26 15:34:52, dmichael (OOO 8.28-8.29) wrote: ...
6 years, 3 months ago (2014-08-28 06:15:08 UTC) #7
oshima
https://codereview.chromium.org/497733002/diff/20001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/497733002/diff/20001/ash/shell.h#newcode760 ash/shell.h:760: weak_display_manager_factory_; sorry if I wasn't clear. Please keep them ...
6 years, 3 months ago (2014-08-28 06:33:17 UTC) #8
Anand Ratn (left samsung)
On 2014/08/28 06:33:17, oshima wrote: > https://codereview.chromium.org/497733002/diff/20001/ash/shell.h > File ash/shell.h (right): > > https://codereview.chromium.org/497733002/diff/20001/ash/shell.h#newcode760 > ...
6 years, 3 months ago (2014-08-28 07:17:22 UTC) #9
Anand Ratn (left samsung)
PTAL. https://codereview.chromium.org/497733002/diff/20001/ash/shell.h File ash/shell.h (right): https://codereview.chromium.org/497733002/diff/20001/ash/shell.h#newcode760 ash/shell.h:760: weak_display_manager_factory_; On 2014/08/28 06:33:17, oshima wrote: > sorry ...
6 years, 3 months ago (2014-08-28 07:17:39 UTC) #10
oshima
https://codereview.chromium.org/497733002/diff/40001/ash/shell.h File ash/shell.h (left): https://codereview.chromium.org/497733002/diff/40001/ash/shell.h#oldcode703 ash/shell.h:703: weak_display_manager_factory_; sorry , I should have said, "please revert ...
6 years, 3 months ago (2014-08-28 16:29:41 UTC) #11
Anand Ratn (left samsung)
On 2014/08/28 16:29:41, oshima wrote: > https://codereview.chromium.org/497733002/diff/40001/ash/shell.h > File ash/shell.h (left): > > https://codereview.chromium.org/497733002/diff/40001/ash/shell.h#oldcode703 > ...
6 years, 3 months ago (2014-09-01 04:25:41 UTC) #12
Anand Ratn (left samsung)
PTAL. https://codereview.chromium.org/497733002/diff/40001/ash/shell.h File ash/shell.h (left): https://codereview.chromium.org/497733002/diff/40001/ash/shell.h#oldcode703 ash/shell.h:703: weak_display_manager_factory_; On 2014/08/28 16:29:41, oshima wrote: > sorry ...
6 years, 3 months ago (2014-09-01 04:25:56 UTC) #13
Anand Ratn (left samsung)
On 2014/08/28 16:29:41, oshima wrote: > https://codereview.chromium.org/497733002/diff/40001/ash/shell.h > File ash/shell.h (left): > > https://codereview.chromium.org/497733002/diff/40001/ash/shell.h#oldcode703 > ...
6 years, 3 months ago (2014-09-02 03:41:46 UTC) #14
oshima
lgtm
6 years, 3 months ago (2014-09-02 06:39:40 UTC) #15
oshima
lgtm
6 years, 3 months ago (2014-09-02 06:39:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anand.ratn@samsung.com/497733002/60001
6 years, 3 months ago (2014-09-02 09:00:36 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-02 09:56:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/9947)
6 years, 3 months ago (2014-09-02 10:08:14 UTC) #21
Anand Ratn (left samsung)
On 2014/09/02 10:08:14, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-09-02 14:39:23 UTC) #22
oshima
https://codereview.chromium.org/497733002/diff/60001/ash/wm/workspace/workspace_window_resizer.h File ash/wm/workspace/workspace_window_resizer.h (right): https://codereview.chromium.org/497733002/diff/60001/ash/wm/workspace/workspace_window_resizer.h#newcode169 ash/wm/workspace/workspace_window_resizer.h:169: Can you add static method to return the instance ...
6 years, 3 months ago (2014-09-03 00:04:03 UTC) #23
Anand Ratn (left samsung)
On 2014/09/03 00:04:03, oshima wrote: > https://codereview.chromium.org/497733002/diff/60001/ash/wm/workspace/workspace_window_resizer.h > File ash/wm/workspace/workspace_window_resizer.h (right): > > https://codereview.chromium.org/497733002/diff/60001/ash/wm/workspace/workspace_window_resizer.h#newcode169 > ...
6 years, 3 months ago (2014-09-03 07:55:52 UTC) #24
Anand Ratn (left samsung)
PTAL. Changes are incorporated in this patchset. https://codereview.chromium.org/497733002/diff/60001/ash/wm/workspace/workspace_window_resizer.h File ash/wm/workspace/workspace_window_resizer.h (right): https://codereview.chromium.org/497733002/diff/60001/ash/wm/workspace/workspace_window_resizer.h#newcode169 ash/wm/workspace/workspace_window_resizer.h:169: I have ...
6 years, 3 months ago (2014-09-03 07:56:22 UTC) #25
Anand Ratn (left samsung)
On 2014/09/03 07:56:22, anand.ratn wrote: > PTAL. Changes are incorporated in this patchset. > > ...
6 years, 3 months ago (2014-09-03 14:10:54 UTC) #26
oshima
On 2014/09/03 14:10:54, anand.ratn wrote: > On 2014/09/03 07:56:22, anand.ratn wrote: > > PTAL. Changes ...
6 years, 3 months ago (2014-09-03 17:02:17 UTC) #27
Anand Ratn (left samsung)
On 2014/09/03 17:02:17, oshima wrote: > On 2014/09/03 14:10:54, anand.ratn wrote: > > On 2014/09/03 ...
6 years, 3 months ago (2014-09-04 05:05:42 UTC) #30
oshima
https://codereview.chromium.org/497733002/diff/120001/ash/wm/workspace/workspace_window_resizer.h File ash/wm/workspace/workspace_window_resizer.h (right): https://codereview.chromium.org/497733002/diff/120001/ash/wm/workspace/workspace_window_resizer.h#newcode170 ash/wm/workspace/workspace_window_resizer.h:170: // Adding method to return WorkspaceWindowResizer *instance // Returns ...
6 years, 3 months ago (2014-09-04 06:18:48 UTC) #31
Anand Ratn (left samsung)
Thanks for the review. PTAL at new patchset. https://codereview.chromium.org/497733002/diff/120001/ash/wm/workspace/workspace_window_resizer.h File ash/wm/workspace/workspace_window_resizer.h (right): https://codereview.chromium.org/497733002/diff/120001/ash/wm/workspace/workspace_window_resizer.h#newcode170 ash/wm/workspace/workspace_window_resizer.h:170: // ...
6 years, 3 months ago (2014-09-04 07:31:12 UTC) #32
oshima
lgtm thanks! https://codereview.chromium.org/497733002/diff/140001/ash/wm/workspace/workspace_window_resizer.cc File ash/wm/workspace/workspace_window_resizer.cc (right): https://codereview.chromium.org/497733002/diff/140001/ash/wm/workspace/workspace_window_resizer.cc#newcode255 ash/wm/workspace/workspace_window_resizer.cc:255: } nit: keep this after static member ...
6 years, 3 months ago (2014-09-04 09:31:11 UTC) #33
Anand Ratn (left samsung)
PTAL. https://codereview.chromium.org/497733002/diff/140001/ash/wm/workspace/workspace_window_resizer.cc File ash/wm/workspace/workspace_window_resizer.cc (right): https://codereview.chromium.org/497733002/diff/140001/ash/wm/workspace/workspace_window_resizer.cc#newcode255 ash/wm/workspace/workspace_window_resizer.cc:255: } On 2014/09/04 09:31:11, oshima wrote: > nit: ...
6 years, 3 months ago (2014-09-04 10:16:30 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anand.ratn@samsung.com/497733002/160001
6 years, 3 months ago (2014-09-04 10:18:09 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_retina_triggered_tests/builds/43693)
6 years, 3 months ago (2014-09-04 17:12:26 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anand.ratn@samsung.com/497733002/160001
6 years, 3 months ago (2014-09-05 04:11:36 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001) as f01b7a8f22dda131d39ffa53a3dc31e818643062
6 years, 3 months ago (2014-09-05 05:12:53 UTC) #41
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:37:10 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e8dea07883cf5cb9efa4c083495dd3de4abf3e14
Cr-Commit-Position: refs/heads/master@{#293450}

Powered by Google App Engine
This is Rietveld 408576698