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

Side by Side Diff: chrome/browser/browsing_instance.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browsing_instance.h ('k') | chrome/browser/bug_report_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browsing_instance.h" 5 #include "chrome/browser/browsing_instance.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/renderer_host/site_instance.h" 10 #include "chrome/browser/renderer_host/site_instance.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 13
14 /*static*/ 14 /*static*/
15 BrowsingInstance::ProfileSiteInstanceMap 15 BrowsingInstance::ProfileSiteInstanceMap
16 BrowsingInstance::profile_site_instance_map_; 16 BrowsingInstance::profile_site_instance_map_;
17 17
18 BrowsingInstance::BrowsingInstance(Profile* profile) 18 BrowsingInstance::BrowsingInstance(Profile* profile)
19 : profile_(profile) { 19 : profile_(profile) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 return true; 147 return true;
148 } 148 }
149 return false; 149 return false;
150 } 150 }
151 151
152 BrowsingInstance::~BrowsingInstance() { 152 BrowsingInstance::~BrowsingInstance() {
153 // We should only be deleted when all of the SiteInstances that refer to 153 // We should only be deleted when all of the SiteInstances that refer to
154 // us are gone. 154 // us are gone.
155 DCHECK(site_instance_map_.empty()); 155 DCHECK(site_instance_map_.empty());
156 } 156 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_instance.h ('k') | chrome/browser/bug_report_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698