Index: chrome/browser/ui/webui/options/advanced_options_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/options/advanced_options_handler.cc (revision 79759) |
+++ chrome/browser/ui/webui/options/advanced_options_handler.cc (working copy) |
@@ -60,6 +60,10 @@ |
} |
AdvancedOptionsHandler::~AdvancedOptionsHandler() { |
+ // 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_folder_dialog_.get()) |
+ select_folder_dialog_->ListenerDestroyed(); |
} |
void AdvancedOptionsHandler::GetLocalizedValues( |