summaryrefslogtreecommitdiffstats
path: root/content/browser/web_contents/interstitial_page_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/web_contents/interstitial_page_impl.cc')
-rw-r--r--content/browser/web_contents/interstitial_page_impl.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/content/browser/web_contents/interstitial_page_impl.cc b/content/browser/web_contents/interstitial_page_impl.cc
index 1d53cb1..f2ac72e 100644
--- a/content/browser/web_contents/interstitial_page_impl.cc
+++ b/content/browser/web_contents/interstitial_page_impl.cc
@@ -32,6 +32,7 @@
#include "content/public/browser/invalidate_type.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents_view.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/common/page_transition_types.h"
@@ -487,14 +488,10 @@ RenderViewHost* InterstitialPageImpl::CreateRenderViewHost() {
BrowserContext* browser_context = web_contents()->GetBrowserContext();
scoped_refptr<SiteInstance> site_instance =
SiteInstance::Create(browser_context);
- const std::string& partition_id =
- content::GetContentClient()->browser()->
- GetStoragePartitionIdForSiteInstance(browser_context,
- site_instance);
DOMStorageContextImpl* dom_storage_context =
static_cast<DOMStorageContextImpl*>(
- BrowserContext::GetDOMStorageContextByPartitionId(browser_context,
- partition_id));
+ BrowserContext::GetStoragePartition(
+ browser_context, site_instance)->GetDOMStorageContext());
SessionStorageNamespaceImpl* session_storage_namespace_impl =
new SessionStorageNamespaceImpl(dom_storage_context);