Index: content/browser/renderer_host/test_render_view_host.cc |
diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc |
index 53564b3249f49e6cc72cf6a74d4b533f49383e0e..58796ea91836f090c5bf81a89d055ff37f4580f0 100644 |
--- a/content/browser/renderer_host/test_render_view_host.cc |
+++ b/content/browser/renderer_host/test_render_view_host.cc |
@@ -12,6 +12,7 @@ |
#include "content/common/view_messages.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/navigation_controller.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/common/content_client.h" |
#include "ui/gfx/rect.h" |
#include "webkit/dom_storage/dom_storage_types.h" |
@@ -31,8 +32,8 @@ SessionStorageNamespaceImpl* CreateSessionStorageNamespace( |
SiteInstance* instance) { |
RenderProcessHost* process_host = instance->GetProcess(); |
DOMStorageContext* dom_storage_context = |
- BrowserContext::GetDOMStorageContext(process_host->GetBrowserContext(), |
- process_host->GetID()); |
+ BrowserContext::GetStoragePartition(process_host->GetBrowserContext(), |
+ instance)->GetDOMStorageContext(); |
return new SessionStorageNamespaceImpl( |
static_cast<DOMStorageContextImpl*>(dom_storage_context)); |
} |