Chromium Code Reviews| Index: content/browser/browsing_instance.cc |
| diff --git a/content/browser/browsing_instance.cc b/content/browser/browsing_instance.cc |
| index c70f38b9daaf5b32d64799e439b5b391024a5552..eb0b8554a0a047c0c31547403417509bd7bb0c6b 100644 |
| --- a/content/browser/browsing_instance.cc |
| +++ b/content/browser/browsing_instance.cc |
| @@ -15,7 +15,8 @@ |
| namespace content { |
| BrowsingInstance::BrowsingInstance(BrowserContext* browser_context) |
| - : browser_context_(browser_context) { |
| + : browser_context_(browser_context), |
| + active_contents_count_(0) { |
|
Charlie Reis
2014/04/29 22:13:51
Minor nit: You're using 0u everywhere else, so per
davidben
2014/04/29 23:02:26
Done.
|
| } |
| bool BrowsingInstance::HasSiteInstance(const GURL& url) { |
| @@ -84,6 +85,7 @@ BrowsingInstance::~BrowsingInstance() { |
| // We should only be deleted when all of the SiteInstances that refer to |
| // us are gone. |
| DCHECK(site_instance_map_.empty()); |
| + DCHECK_EQ(0u, active_contents_count_); |
| } |
| } // namespace content |