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

Unified Diff: content/browser/web_contents/render_view_host_manager.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content shell Created 8 years, 5 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/web_contents/render_view_host_manager.cc
diff --git a/content/browser/web_contents/render_view_host_manager.cc b/content/browser/web_contents/render_view_host_manager.cc
index 0ac69fb8bf756d455bb2c08bbb8084053cd42d74..c499d6289363a2a6f789878588a77aab2f499376 100644
--- a/content/browser/web_contents/render_view_host_manager.cc
+++ b/content/browser/web_contents/render_view_host_manager.cc
@@ -81,7 +81,8 @@ void RenderViewHostManager::Init(content::BrowserContext* browser_context,
RenderViewHostFactory::Create(
site_instance, render_view_delegate_, render_widget_delegate_,
routing_id, false, delegate_->
- GetControllerForRenderManager().GetSessionStorageNamespace()));
+ GetControllerForRenderManager().GetSessionStorageNamespace(
+ site_instance->GetProcess()->GetID())));
Charlie Reis 2012/08/02 23:06:47 Are we sure we want to call GetProcess() this earl
awong 2012/08/03 00:31:04 I bet it probably is earlier. But I don't know how
Charlie Reis 2012/08/03 22:11:28 Looks like it's about the same time. Before, we c
awong 2012/08/04 01:01:32 Your instincts were right. This doesn't work becau
// Keep track of renderer processes as they start to shut down.
registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSING,
@@ -584,7 +585,8 @@ int RenderViewHostManager::CreateRenderView(
RenderViewHostFactory::Create(instance,
render_view_delegate_, render_widget_delegate_, MSG_ROUTING_NONE,
swapped_out, delegate_->
- GetControllerForRenderManager().GetSessionStorageNamespace()));
+ GetControllerForRenderManager().GetSessionStorageNamespace(
+ instance->GetProcess()->GetID())));
// If the new RVH is swapped out already, store it. Otherwise prevent the
// process from exiting while we're trying to navigate in it.

Powered by Google App Engine
This is Rietveld 408576698