summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-18 17:02:08 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-18 17:02:08 +0000
commit109607461c875c18217b2c3624a060945f11daea (patch)
treea13e520003dffb6079c762c20ebddd5a4d4b8640 /chrome/browser
parent07958334a979f0049e4d2baf44da70a9a4f1aaff (diff)
downloadchromium_src-109607461c875c18217b2c3624a060945f11daea.zip
chromium_src-109607461c875c18217b2c3624a060945f11daea.tar.gz
chromium_src-109607461c875c18217b2c3624a060945f11daea.tar.bz2
Enable DOM_STORAGE in our build. Put LocalStorage and SessionStorage behind their own flags. Add the beginnings of StorageNamespaceProxy since it implements WebCore::StorageNamespace::____StorageNamespace and we'd get link errors otherwise.
--enable-local-storage and --enable-session-storage are the new flags. If you enable them and try to use DOM Storage, Chromium will crash. BUG=4360 TEST=none Review URL: http://codereview.chromium.org/149792 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/tab_contents/render_view_host_delegate_helper.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
index ec00ba5..37923a6 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -176,6 +176,10 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
command_line.HasSwitch(switches::kEnableRemoteFonts);
web_prefs.xss_auditor_enabled =
command_line.HasSwitch(switches::kEnableXSSAuditor);
+ web_prefs.local_storage_enabled =
+ command_line.HasSwitch(switches::kEnableLocalStorage);
+ web_prefs.session_storage_enabled =
+ command_line.HasSwitch(switches::kEnableSessionStorage);
}
web_prefs.uses_universal_detector =