summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc1
-rw-r--r--chrome/renderer/render_thread.cc3
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index f3484a1..ff9b60d 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -554,6 +554,7 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
switches::kEnableSessionStorage,
switches::kEnableSharedWorkers,
switches::kEnableDesktopNotifications,
+ switches::kEnableApplicationCache,
// We propagate the Chrome Frame command line here as well in case the
// renderer is not run in the sandbox.
switches::kChromeFrame,
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index a2a177e..8f3bac5 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -553,6 +553,9 @@ void RenderThread::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableDatabase(
command_line.HasSwitch(switches::kEnableDatabases));
+ WebRuntimeFeatures::enableApplicationCache(
+ command_line.HasSwitch(switches::kEnableApplicationCache));
+
#if defined(OS_WIN)
// We don't yet support notifications on non-Windows, so hide it from pages.
WebRuntimeFeatures::enableNotifications(