summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_thread.cc
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-24 00:37:58 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-24 00:37:58 +0000
commit0afb993799a67ee58cf16c1cc3ce6fd813d88841 (patch)
treeacd25e47b2fae473594fa7893185bb29c5e584cb /chrome/renderer/render_thread.cc
parentec45150a89bb02e1f9c4ab159924af22b4952b33 (diff)
downloadchromium_src-0afb993799a67ee58cf16c1cc3ce6fd813d88841.zip
chromium_src-0afb993799a67ee58cf16c1cc3ce6fd813d88841.tar.gz
chromium_src-0afb993799a67ee58cf16c1cc3ce6fd813d88841.tar.bz2
Instructing V8 to disable the binding for the window.openDatabase()
function. BUG=none TEST=none Review URL: http://codereview.chromium.org/295053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29980 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.cc')
-rw-r--r--chrome/renderer/render_thread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index ed2c5dd..a95e906 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -514,6 +514,9 @@ void RenderThread::EnsureWebKitInitialized() {
if (command_line.HasSwitch(switches::kEnableWebSockets))
WebKit::enableWebSockets();
+
+ if (command_line.HasSwitch(switches::kEnableDatabases))
+ WebKit::enableDatabases();
}
void RenderThread::IdleHandler() {