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

Issue 101013002: Make sure WindowObservers are removed from window before destruction (Closed)

Created:
7 years ago by oshima
Modified:
7 years ago
CC:
chromium-reviews, ben+aura_chromium.org, tfarina, sadrul, dcheng, kalyank, ben+views_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Make sure WindowObservers are removed from window before destruction * Check if the window observer is empty upon destruction. * remove the all observers in ~WindowObserver() * Remove RemoveObserver that are no longer necessary * Fix shell shutdown order so that observers are removed correctly before deleting all windows. BUG=324018 R=skuhne@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239232 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239246

Patch Set 1 : #

Patch Set 2 : cc #

Total comments: 1

Patch Set 3 : #

Total comments: 15

Patch Set 4 : addressed comments #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : fix shutdown order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -51 lines) Patch
M ash/drag_drop/drag_drop_controller.cc View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 1 chunk +26 lines, -13 lines 0 comments Download
M ash/wm/solo_window_tracker_unittest.cc View 1 2 2 chunks +10 lines, -4 lines 0 comments Download
M ash/wm/window_cycle_list.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/window_state.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/window_state.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_private_api.cc View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 4 5 chunks +37 lines, -12 lines 0 comments Download
M ui/aura/client/default_activation_client.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M ui/aura/window_observer.h View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M ui/views/corewm/tooltip_controller.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
oshima
7 years ago (2013-12-04 02:08:17 UTC) #1
sky
https://codereview.chromium.org/101013002/diff/120001/ui/aura/window_observer.h File ui/aura/window_observer.h (right): https://codereview.chromium.org/101013002/diff/120001/ui/aura/window_observer.h#newcode92 ui/aura/window_observer.h:92: // The default implementation simply remove itself from |window|'s ...
7 years ago (2013-12-04 04:27:32 UTC) #2
oshima
Uploaded new patch. PTAL.
7 years ago (2013-12-04 19:21:07 UTC) #3
oshima
Uploaded new patch. PTAL.
7 years ago (2013-12-04 19:21:07 UTC) #4
oshima
On 2013/12/04 19:21:07, oshima wrote: > Uploaded new patch. PTAL. skuhne@ -> chrome/browser/ui/ash/multi_user/
7 years ago (2013-12-04 19:21:45 UTC) #5
Mr4D (OOO till 08-26)
Only a few comments. Thanks for this - I like simplification! That said, coming to ...
7 years ago (2013-12-04 19:45:46 UTC) #6
oshima
On 2013/12/04 19:45:46, Mr4D wrote: > Only a few comments. > > Thanks for this ...
7 years ago (2013-12-04 20:19:09 UTC) #7
sky
Also add a comment to WindowObserver that Window automatically removes itself as an observer before ...
7 years ago (2013-12-04 22:52:58 UTC) #8
oshima
https://codereview.chromium.org/101013002/diff/280001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/101013002/diff/280001/ash/shell.cc#newcode634 ash/shell.cc:634: // before |display_controller_| being deleted. On 2013/12/04 22:52:59, sky ...
7 years ago (2013-12-05 01:26:44 UTC) #9
sky
LGTM https://codereview.chromium.org/101013002/diff/280001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/101013002/diff/280001/ash/shell.cc#newcode636 ash/shell.cc:636: // Destroy VideoActivityNotifier before destroying VideoDetector. On 2013/12/05 ...
7 years ago (2013-12-05 01:36:35 UTC) #10
Mr4D (OOO till 08-26)
See my comment. Thanks! https://codereview.chromium.org/101013002/diff/300001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/101013002/diff/300001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc#newcode47 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc:47: // Delete the window at ...
7 years ago (2013-12-05 01:54:28 UTC) #11
oshima
https://codereview.chromium.org/101013002/diff/300001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/101013002/diff/300001/ash/shell.cc#newcode633 ash/shell.cc:633: // Controllers who has WindowObserver added must be deleted ...
7 years ago (2013-12-05 18:04:01 UTC) #12
Mr4D (OOO till 08-26)
lgtm
7 years ago (2013-12-05 18:39:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/101013002/320001
7 years ago (2013-12-05 18:52:58 UTC) #14
commit-bot: I haz the power
Failed to apply patch for ash/shell.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-05 18:53:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/101013002/340001
7 years ago (2013-12-05 19:43:08 UTC) #16
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32196
7 years ago (2013-12-05 22:22:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/101013002/340001
7 years ago (2013-12-05 23:22:35 UTC) #18
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32320
7 years ago (2013-12-06 05:05:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/101013002/340001
7 years ago (2013-12-06 06:48:19 UTC) #20
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32463
7 years ago (2013-12-06 07:39:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/101013002/340001
7 years ago (2013-12-06 07:44:14 UTC) #22
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32481
7 years ago (2013-12-06 08:33:54 UTC) #23
oshima
Committed patchset #6 manually as r239232 (presubmit successful).
7 years ago (2013-12-06 17:10:01 UTC) #24
oshima
7 years ago (2013-12-06 18:39:08 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 manually as r239246 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698