Index: content/renderer/render_view_impl.cc |
=================================================================== |
--- content/renderer/render_view_impl.cc (revision 127736) |
+++ content/renderer/render_view_impl.cc (working copy) |
@@ -1553,11 +1553,17 @@ |
WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace( |
unsigned quota) { |
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND |
+ CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); |
+ return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION, |
+ session_storage_namespace_id_); |
+#else |
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) |
return WebStorageNamespace::createSessionStorageNamespace(quota); |
CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); |
return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION, |
session_storage_namespace_id_); |
+#endif |
} |
WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D( |