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

Unified Diff: chrome/browser/browsing_instance.cc

Issue 255087: Adding a unique runtime Id to Profile objects, that can be used as the key... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/browser/browsing_instance.h ('k') | chrome/browser/profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_instance.cc
===================================================================
--- chrome/browser/browsing_instance.cc (revision 28102)
+++ chrome/browser/browsing_instance.cc (working copy)
@@ -53,7 +53,9 @@
// Otherwise, process-per-site is in use, at least for this URL. Look up the
// global map for this profile, creating an entry if necessary.
- return &profile_site_instance_map_[profile];
+ ProfileId runtime_id = profile ? profile->GetRuntimeId()
+ : Profile::InvalidProfileId;
+ return &profile_site_instance_map_[runtime_id];
}
bool BrowsingInstance::HasSiteInstance(const GURL& url) {
« no previous file with comments | « chrome/browser/browsing_instance.h ('k') | chrome/browser/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698