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

Unified Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DISALLOW_COPY_AND_ASSIGN, and change RPH::CreateMessageFilters() to not suddenly isolate all… Created 8 years, 4 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/renderer_host/render_process_host_impl.cc ('k') | content/browser/site_instance_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/site_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698