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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 9429029: Integrate the new DomStorage backend into DRT and test_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « webkit/tools/test_shell/test_shell_webkit_init.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_webview_delegate.cc
===================================================================
--- webkit/tools/test_shell/test_webview_delegate.cc (revision 124232)
+++ webkit/tools/test_shell/test_webview_delegate.cc (working copy)
@@ -70,6 +70,7 @@
#include "webkit/tools/test_shell/mock_spellcheck.h"
#include "webkit/tools/test_shell/notification_presenter.h"
#include "webkit/tools/test_shell/simple_appcache_system.h"
+#include "webkit/tools/test_shell/simple_dom_storage_system.h"
#include "webkit/tools/test_shell/simple_file_system.h"
#include "webkit/tools/test_shell/test_navigation_controller.h"
#include "webkit/tools/test_shell/test_shell.h"
@@ -333,9 +334,13 @@
WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace(
unsigned quota) {
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+ return SimpleDomStorageSystem::instance().CreateSessionStorageNamespace();
+#else
// Enforce quota, ignoring the parameter from WebCore as in Chrome.
return WebKit::WebStorageNamespace::createSessionStorageNamespace(
WebStorageNamespace::m_sessionStorageQuota);
+#endif
}
WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D(
« no previous file with comments | « webkit/tools/test_shell/test_shell_webkit_init.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698