Index: content/browser/browsing_instance.cc |
=================================================================== |
--- content/browser/browsing_instance.cc (revision 92309) |
+++ content/browser/browsing_instance.cc (working copy) |
@@ -60,9 +60,7 @@ |
// 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. |
- ProfileId runtime_id = profile ? profile->GetRuntimeId() |
- : Profile::kInvalidProfileId; |
- return &profile_site_instance_map_[runtime_id]; |
+ return &profile_site_instance_map_[profile]; |
} |
bool BrowsingInstance::HasSiteInstance(const GURL& url) { |
@@ -127,10 +125,8 @@ |
// the site was put into when it was originally registered. |
if (!RemoveSiteInstanceFromMap(&site_instance_map_, site, site_instance)) { |
// Wasn't in our local map, so look in the static per-profile map. |
- ProfileId runtime_id = profile_ ? profile_->GetRuntimeId() |
- : Profile::kInvalidProfileId; |
RemoveSiteInstanceFromMap( |
- &profile_site_instance_map_[runtime_id], site, site_instance); |
+ &profile_site_instance_map_[profile_], site, site_instance); |
} |
} |