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

Unified Diff: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc

Issue 412483006: Fixed bug where Uninstall dialog forces its own widget to close twice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
index d6d3a8c5964cfc01de4fcaa12927df3a1940c441..beb4484ab249175ee4d7d2d86c3850696533ff68 100644
--- a/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc
@@ -121,8 +121,12 @@ ExtensionUninstallDialogViews::ExtensionUninstallDialogViews(
ExtensionUninstallDialogViews::~ExtensionUninstallDialogViews() {
// Close the widget (the views framework will delete view_).
if (view_) {
+ // This can only happen if the dialog is destroyed by some external means,
+ // and neither of ExtensionUninstallAccepted() and
+ // ExtensionUninstallCanceled() have been called. In this case, the dialog
+ // is probably already being closed, but call Close() just to make sure.
view_->DialogDestroyed();
- view_->GetWidget()->CloseNow();
+ view_->GetWidget()->Close();
sky 2014/07/23 15:29:37 If you do this, it means the WidgetDelegate/Dialog
sashab 2014/08/06 03:09:00 If that's true, then I don't think this destructor
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698