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

Unified Diff: chrome/browser/ui/browser.cc

Issue 266343002: Unload all apps / extensions when deleting a profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 141171682af4670513c70420410e98df986bd513..61b0988d192dcc49a1583bbd4a604b362e9c0bb5 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -447,6 +447,8 @@ Browser::Browser(const CreateParams& params)
}
Browser::~Browser() {
+ registrar_.RemoveAll();
sky 2014/05/07 22:17:32 Why is this explicitly needed? Assuming it is neee
scheib 2014/05/08 15:17:52 Done.
+
// The tab strip should not have any tabs at this point.
DCHECK(tab_strip_model_->empty());
tab_strip_model_->RemoveObserver(this);

Powered by Google App Engine
This is Rietveld 408576698