summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-04 19:38:29 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-04 19:38:29 +0000
commit1ebc714fc73d1e9123662a08535e1bec7e3804dd (patch)
tree3b2d7dfdad76ebbf131c3c0bd6a168a7df975f0d /chrome/browser/autofill
parent3a5a8f3ced18095419e5d79075bd2e0cfc9a88b4 (diff)
downloadchromium_src-1ebc714fc73d1e9123662a08535e1bec7e3804dd.zip
chromium_src-1ebc714fc73d1e9123662a08535e1bec7e3804dd.tar.gz
chromium_src-1ebc714fc73d1e9123662a08535e1bec7e3804dd.tar.bz2
Fix autofill dialog not reshowing problem.
This is because NativeDialogHost sends GTK_RESPONSE_DELETE_EVENT and autofill dialog does not handle it. BUG=chromium-os:3816 TEST=Verify fix for chromium-os:3816. Review URL: http://codereview.chromium.org/2655004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r--chrome/browser/autofill/autofill_dialog_gtk.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_dialog_gtk.cc b/chrome/browser/autofill/autofill_dialog_gtk.cc
index a61b144..1d56f7f 100644
--- a/chrome/browser/autofill/autofill_dialog_gtk.cc
+++ b/chrome/browser/autofill/autofill_dialog_gtk.cc
@@ -527,7 +527,9 @@ void AutoFillDialog::OnResponse(GtkDialog* dialog, gint response_id,
&autofill_dialog->credit_cards_);
}
- if (response_id == GTK_RESPONSE_OK || response_id == GTK_RESPONSE_CANCEL) {
+ if (response_id == GTK_RESPONSE_OK ||
+ response_id == GTK_RESPONSE_CANCEL ||
+ response_id == GTK_RESPONSE_DELETE_EVENT) {
gtk_widget_destroy(GTK_WIDGET(dialog));
}