diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 03:23:40 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 03:23:40 +0000 |
commit | 97467c9a3a1968b059db6020aad2a3fdeba33e57 (patch) | |
tree | a86b4577cbf6c3061ebec5f1f28599ec8e9bbf1e /chrome/browser/tab_contents | |
parent | fa7e11dea2d3510e2d4bd65a9696a5261f9b3464 (diff) | |
download | chromium_src-97467c9a3a1968b059db6020aad2a3fdeba33e57.zip chromium_src-97467c9a3a1968b059db6020aad2a3fdeba33e57.tar.gz chromium_src-97467c9a3a1968b059db6020aad2a3fdeba33e57.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.Originally Committed in http://src.chromium.org/viewvc/chrome?view=rev&revision=21059 but then backed out due to include path issues.BUG=4360TEST=none
Review URL: http://codereview.chromium.org/159059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/render_view_host_delegate_helper.cc | 4 |
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 = |