summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/browser.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 37a03a6..99122cc 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -462,13 +462,8 @@ Browser::Browser(const CreateParams& params)
Browser::~Browser() {
// The tab strip should not have any tabs at this point.
- if (!browser_shutdown::ShuttingDownWithoutClosingBrowsers()) {
- // This CHECKs rather than DCHECKs in an attempt to catch
- // http://crbug.com/144879 . In any case, if there are WebContents in this
- // Browser, if we proceed further then they will almost certainly call
- // through their delegate pointers to this deallocated Browser and crash.
- CHECK(tab_strip_model_->empty());
- }
+ if (!browser_shutdown::ShuttingDownWithoutClosingBrowsers())
+ DCHECK(tab_strip_model_->empty());
search_model_->RemoveObserver(this);
tab_strip_model_->RemoveObserver(this);