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

Unified Diff: content/browser/site_instance.cc

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments. Created 9 years, 8 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
Index: content/browser/site_instance.cc
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index 3503eac1579f23ad2eb28bc0791e8eb44c4ef51d..909dae4da0271cfe70af1b01173c2ff1df947716 100644
--- a/content/browser/site_instance.cc
+++ b/content/browser/site_instance.cc
@@ -25,8 +25,11 @@ static bool IsURLSameAsAnySiteInstance(const GURL& url) {
url.spec() == chrome::kAboutShorthangURL;
}
+int32 SiteInstance::next_site_instance_id_ = 1;
+
SiteInstance::SiteInstance(BrowsingInstance* browsing_instance)
- : browsing_instance_(browsing_instance),
+ : id_(next_site_instance_id_++),
+ browsing_instance_(browsing_instance),
render_process_host_factory_(NULL),
process_(NULL),
max_page_id_(-1),

Powered by Google App Engine
This is Rietveld 408576698