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

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

Issue 19491004: Fix SessionStorage confusion between RenderViewHostImpl and NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/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 76412618c25221e10ec4ba2360f5f3af62261937..7783e802673442e4fe1c3dc9709736277d2f0c23 100644
--- a/content/browser/renderer_host/test_render_view_host.cc
+++ b/content/browser/renderer_host/test_render_view_host.cc
@@ -24,17 +24,6 @@
namespace content {
namespace {
-// Normally this is done by the NavigationController, but we'll fake it out
-// here for testing.
-SessionStorageNamespaceImpl* CreateSessionStorageNamespace(
- SiteInstance* instance) {
- RenderProcessHost* process_host = instance->GetProcess();
- DOMStorageContext* dom_storage_context =
- BrowserContext::GetStoragePartition(process_host->GetBrowserContext(),
- instance)->GetDOMStorageContext();
- return new SessionStorageNamespaceImpl(
- static_cast<DOMStorageContextImpl*>(dom_storage_context));
-}
const int64 kFrameId = 13UL;
@@ -258,8 +247,7 @@ TestRenderViewHost::TestRenderViewHost(
widget_delegate,
routing_id,
main_frame_routing_id,
- swapped_out,
- CreateSessionStorageNamespace(instance)),
+ swapped_out),
render_view_created_(false),
delete_counter_(NULL),
simulate_fetch_via_proxy_(false),
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698