summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 00:26:04 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 00:26:04 +0000
commitca7bf5806cf02793cbd756b7138cd766cc2caf28 (patch)
treea94a2500f383250f0fdb1d0470949d44c295e4fd /chrome/browser
parent93b552eb1179e797613e64e4dd7eac4ac8fbb8bd (diff)
downloadchromium_src-ca7bf5806cf02793cbd756b7138cd766cc2caf28.zip
chromium_src-ca7bf5806cf02793cbd756b7138cd766cc2caf28.tar.gz
chromium_src-ca7bf5806cf02793cbd756b7138cd766cc2caf28.tar.bz2
gtk: Post the SendNotification in a task on the UI thread. In rare instances, SendNotifications was being run before CancelAuthDeferred, so the proper cleanup was not happening before this object was deleted which leads to a crash.
BUG=18973 TEST=Instructions in the bug report. Review URL: http://codereview.chromium.org/165268 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/login_prompt_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/login_prompt_gtk.cc b/chrome/browser/login_prompt_gtk.cc
index ef98d26..f38be97 100644
--- a/chrome/browser/login_prompt_gtk.cc
+++ b/chrome/browser/login_prompt_gtk.cc
@@ -175,7 +175,8 @@ class LoginHandlerGtk : public LoginHandler,
if (!WasAuthHandled(true)) {
request_loop_->PostTask(FROM_HERE, NewRunnableMethod(
this, &LoginHandlerGtk::CancelAuthDeferred));
- SendNotifications();
+ ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(
+ this, &LoginHandlerGtk::SendNotifications));
}
// Delete this object once all InvokeLaters have been called.