Index: chrome/browser/ui/webui/options/certificate_manager_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/options/certificate_manager_handler.cc (revision 79759) |
+++ chrome/browser/ui/webui/options/certificate_manager_handler.cc (working copy) |
@@ -681,8 +681,13 @@ |
password_.clear(); |
file_data_.clear(); |
selected_cert_list_.clear(); |
+ module_ = NULL; |
+ |
+ // There may be pending file dialogs, we need to tell them that we've gone |
+ // away so they don't try and call back to us. |
+ if (select_file_dialog_.get()) |
+ select_file_dialog_->ListenerDestroyed(); |
select_file_dialog_ = NULL; |
- module_ = NULL; |
} |
void CertificateManagerHandler::ImportServer(const ListValue* args) { |