Chromium Code Reviews
DescriptionFixed bug where Uninstall dialog forces its own widget to close twice
Previously, ExtensionUninstallDialogViews called CloseNow() on it's own
delegate's Widget if it was destroyed before an Accept/Cancel handler
was called. However, the Widget had already been freed by the Widget
hierarchy, resulting in a crash.
Made ExtensionUninstallDialogViews notify
ExtensionUninstallDialogDelegateView when it closes, so now either order
is possible: either class can be destroyed first (either by the user, or
by the views hierarchy) and the other will be safely destroyed.
TEST=Open the App List in ChromeOS, then right-click on an app and
select 'App Info', then click 'Remove'. Now click away from the app list
to dismiss it. Previously, this would cause a crash.
TEST=Open the App List in Linux, then right-click on an app and
select 'App Info', then click 'Remove'. Now click the 'close' button in
the app info dialog to close the dismiss it. Previously, this would
cause a crash.
BUG=390414, 400909
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289227
Patch Set 1 #
Total comments: 2
Patch Set 2 : Removed destructor altogether. #Patch Set 3 : Made ExtensionUninstallDialogViews notify ExtensionUninstallDialogDelegateView when it closes, so t… #Messages
Total messages: 8 (0 generated)
|