summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/browser_render_process_host.cc
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 22:42:53 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 22:42:53 +0000
commit90a7ad5203fea92a68b6ac3b18f09b67a48192d5 (patch)
tree1fbb79a19db899900b998cfdc8a0688d43411ea6 /chrome/browser/renderer_host/browser_render_process_host.cc
parente7b8d832105e18bfc3789d0a0c5124a34876022c (diff)
downloadchromium_src-90a7ad5203fea92a68b6ac3b18f09b67a48192d5.zip
chromium_src-90a7ad5203fea92a68b6ac3b18f09b67a48192d5.tar.gz
chromium_src-90a7ad5203fea92a68b6ac3b18f09b67a48192d5.tar.bz2
Turn on HTML5 DBs by default.
TEST=none BUG=none Review URL: http://codereview.chromium.org/414048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/browser_render_process_host.cc')
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc20
1 files changed, 5 insertions, 15 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index e9bfedb..c13d592 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -316,8 +316,6 @@ bool BrowserRenderProcessHost::Init(bool is_extensions_process,
scoped_ptr<CommandLine> cmd_line(new CommandLine(renderer_path));
cmd_line->AppendSwitchWithValue(switches::kProcessChannelID,
ASCIIToWide(channel_id));
- if (is_extensions_process)
- cmd_line->AppendSwitch(switches::kEnableDatabases);
AppendRendererCommandLine(cmd_line.get());
// Spawn the child process asynchronously to avoid blocking the UI thread.
@@ -508,6 +506,7 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
switches::kEnableBenchmarking,
switches::kInternalNaCl,
switches::kDisableByteRangeSupport,
+ switches::kDisableDatabases,
switches::kDisableDesktopNotifications,
switches::kDisableWebSockets,
switches::kDisableLocalStorage,
@@ -523,12 +522,6 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
#endif
};
- // Propagate the following switches to the renderer command line (along
- // with any associated values) only if we're not in incognito mode.
- static const char* const not_otr_switch_names[] = {
- switches::kEnableDatabases,
- };
-
for (size_t i = 0; i < arraysize(switch_names); ++i) {
if (browser_cmd.HasSwitch(switch_names[i])) {
renderer_cmd->AppendSwitchWithValue(switch_names[i],
@@ -536,13 +529,10 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
}
}
- if (!profile()->IsOffTheRecord()) {
- for (size_t i = 0; i < arraysize(not_otr_switch_names); ++i) {
- if (browser_cmd.HasSwitch(not_otr_switch_names[i])) {
- renderer_cmd->AppendSwitchWithValue(not_otr_switch_names[i],
- browser_cmd.GetSwitchValueASCII(not_otr_switch_names[i]));
- }
- }
+ // Disable databases in incognito mode.
+ if (profile()->IsOffTheRecord() &&
+ !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
+ renderer_cmd->AppendSwitch(switches::kDisableDatabases);
}
}