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

Issue 2522093002: Notify WidgetRemovalsObserver when RootView is removed (Closed)

Created:
4 years, 1 month ago by Sarmad Hashmi
Modified:
4 years ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, aboxhall+watch_chromium.org, tfarina, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notify WidgetRemovalsObserver when RootView is removed RootViews are destroyed before OnWindowDestroying when widgets are initialized with ownership set to Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET. In this case, WidgetObservers will never be able to get a reference to a RootView. This CL notifies WidgetRemovalsObservers when a RootView is being removed using the existing WillRemoveView. BUG=648701 Committed: https://crrev.com/cb3910d325c997dc3746667cde868ebf5435c3aa Cr-Commit-Position: refs/heads/master@{#434167}

Patch Set 1 #

Patch Set 2 : Notify WidgetRemovalsObserver when RootView is removed #

Patch Set 3 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M ui/views/widget/widget.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (19 generated)
Sarmad Hashmi
As discussed with sadrul@, when Widget owns NativeWidget, OnWidgetDestroying and OnWindowDestroying (for the widget's window) ...
4 years, 1 month ago (2016-11-22 23:26:48 UTC) #9
sky
LGTM
4 years, 1 month ago (2016-11-23 00:42:11 UTC) #10
sadrul
Can you write a test?
4 years, 1 month ago (2016-11-23 02:58:02 UTC) #13
Sarmad Hashmi
Added a test.
4 years, 1 month ago (2016-11-23 03:28:41 UTC) #16
sadrul
lgtm
4 years, 1 month ago (2016-11-23 06:15:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2522093002/40001
4 years ago (2016-11-23 15:02:02 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-23 15:06:07 UTC) #25
commit-bot: I haz the power
4 years ago (2016-11-23 15:07:20 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cb3910d325c997dc3746667cde868ebf5435c3aa
Cr-Commit-Position: refs/heads/master@{#434167}

Powered by Google App Engine
This is Rietveld 408576698