diff options
author | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 01:17:14 +0000 |
---|---|---|
committer | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 01:17:14 +0000 |
commit | 13bc0d82bd5c294a7e67a8ab61e07dc01c170a27 (patch) | |
tree | a83773c3dc362682f5425e698854c2a841d9f96a /chrome | |
parent | e60b6496879d9ab8a58abf998bfbd02aab834aba (diff) | |
download | chromium_src-13bc0d82bd5c294a7e67a8ab61e07dc01c170a27.zip chromium_src-13bc0d82bd5c294a7e67a8ab61e07dc01c170a27.tar.gz chromium_src-13bc0d82bd5c294a7e67a8ab61e07dc01c170a27.tar.bz2 |
Change application cache cmd line enabling to use the new RuntimeEnabledFeatures code.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/377002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/renderer_host/browser_render_process_host.cc | 1 | ||||
-rw-r--r-- | chrome/renderer/render_thread.cc | 3 |
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( |