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

Unified Diff: chrome/browser/login_prompt_gtk.cc

Issue 196104: Linux: don't crash when closing tabs that have open login prompts. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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/login_prompt_gtk.cc
===================================================================
--- chrome/browser/login_prompt_gtk.cc (revision 26017)
+++ chrome/browser/login_prompt_gtk.cc (working copy)
@@ -59,6 +59,8 @@
}
void SetModel(LoginModel* model) {
+ if (login_model_)
+ login_model_->SetObserver(NULL);
login_model_ = model;
if (login_model_)
login_model_->SetObserver(this);
@@ -206,6 +208,8 @@
this, &LoginHandlerGtk::SendNotifications));
}
+ SetModel(NULL);
+
// Delete this object once all InvokeLaters have been called.
request_loop_->ReleaseSoon(FROM_HERE, this);
}
« 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