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

Unified Diff: content/renderer/renderer_webstoragenamespace_impl.cc

Issue 10005049: DomStorage house cleaning (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/renderer/renderer_webstoragenamespace_impl.cc
===================================================================
--- content/renderer/renderer_webstoragenamespace_impl.cc (revision 132070)
+++ content/renderer/renderer_webstoragenamespace_impl.cc (working copy)
@@ -11,16 +11,14 @@
using WebKit::WebStorageNamespace;
using WebKit::WebString;
-RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl(
- DOMStorageType storage_type)
- : namespace_id_(kLocalStorageNamespaceId) {
- DCHECK(storage_type == DOM_STORAGE_LOCAL);
+RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl()
+ : namespace_id_(dom_storage::kLocalStorageNamespaceId) {
}
RendererWebStorageNamespaceImpl::RendererWebStorageNamespaceImpl(
- DOMStorageType storage_type, int64 namespace_id)
+ int64 namespace_id)
: namespace_id_(namespace_id) {
- DCHECK(storage_type == DOM_STORAGE_SESSION);
+ DCHECK_NE(dom_storage::kInvalidSessionStorageNamespaceId, namespace_id);
}
RendererWebStorageNamespaceImpl::~RendererWebStorageNamespaceImpl() {
@@ -44,6 +42,5 @@
}
void RendererWebStorageNamespaceImpl::close() {
- // This is called only on LocalStorage namespaces when WebKit thinks its
- // shutting down. This has no impact on Chromium.
+ // TOOD(michaeln): remove this deprecated method.
}
« no previous file with comments | « content/renderer/renderer_webstoragenamespace_impl.h ('k') | content/test/render_view_fake_resources_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698