DescriptionReland 179231
> views: Fix a Widget destruction crash.
>
> For WIDGET_OWNS_NATIVE_WIDGET widget, we destroy root view before we delete
> |native_widget_|. If a WidgetDelegateView is in root view's hierarchy, the
> native widget destruction would crash because |widget_delegate_| is accessed
> in OnNativeWidgetDestroying but it is deleted with root view already.
>
> This CL marks WidgetDelegateView as owned by client so that it does not go
> away with the root view hierarchy and be deleted on DeleteDelegate.
>
> BUG=164791
> TEST=Covered with a new unit test.
>
> R=ben@chromium.org
BUG=164791, 172842
TEST=No memory leak as in 172842.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179694
Patch Set 1 #
Total comments: 1
Patch Set 2 : rebase #
Total comments: 2
Patch Set 3 : update comment #Patch Set 4 : rebase, fix signin screen test failures #Patch Set 5 : fix DesktopBackgroundView leak #
Messages
Total messages: 10 (0 generated)
|