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

Unified Diff: content/browser/browsing_instance.cc

Issue 2875793002: Why this CL triggers an OilPan crash.
Patch Set: Created 3 years, 7 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 | « content/browser/browsing_instance.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browsing_instance.cc
diff --git a/content/browser/browsing_instance.cc b/content/browser/browsing_instance.cc
index 5dd0ca4191fe832c5d4eea078c9cab946a8d397b..188b3351de346b60098860f031d9539cd269e723 100644
--- a/content/browser/browsing_instance.cc
+++ b/content/browser/browsing_instance.cc
@@ -15,10 +15,12 @@
namespace content {
+int g_next_browsing_instance_id = 1;
+
BrowsingInstance::BrowsingInstance(BrowserContext* browser_context)
: browser_context_(browser_context),
- active_contents_count_(0u) {
-}
+ active_contents_count_(0u),
+ browsing_instance_id_(g_next_browsing_instance_id++) {}
bool BrowsingInstance::HasSiteInstance(const GURL& url) {
std::string site =
« no previous file with comments | « content/browser/browsing_instance.h ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698