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

Unified Diff: content/renderer/renderer_webstoragearea_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_webstoragearea_impl.cc
===================================================================
--- content/renderer/renderer_webstoragearea_impl.cc (revision 132070)
+++ content/renderer/renderer_webstoragearea_impl.cc (working copy)
@@ -8,10 +8,9 @@
#include "base/time.h"
#include "content/common/dom_storage_messages.h"
#include "content/renderer/render_thread_impl.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
+#include "webkit/dom_storage/dom_storage_types.h"
-using WebKit::WebStorageNamespace;
using WebKit::WebString;
using WebKit::WebURL;
@@ -65,8 +64,7 @@
void RendererWebStorageAreaImpl::setItem(
const WebString& key, const WebString& value, const WebURL& url,
WebStorageArea::Result& result, WebString& old_value_webkit) {
- const size_t kMaxKeyValueLength = WebStorageNamespace::m_localStorageQuota;
- if (key.length() + value.length() > kMaxKeyValueLength) {
+ if (key.length() + value.length() > dom_storage::kPerAreaQuota) {
result = ResultBlockedByQuota;
return;
}
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/renderer/renderer_webstoragenamespace_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698