diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/renderer_host/browser_render_process_host.cc | 1 | ||||
-rw-r--r-- | chrome/renderer/render_process.cc | 4 |
2 files changed, 5 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 159a190..b0ec310 100644 --- a/chrome/browser/renderer_host/browser_render_process_host.cc +++ b/chrome/browser/renderer_host/browser_render_process_host.cc @@ -331,6 +331,7 @@ bool BrowserRenderProcessHost::Init() { switches::kEnableBenchmarking, switches::kInternalNaCl, switches::kEnableDatabases, + switches::kEnableByteRangeSupport, }; for (size_t i = 0; i < arraysize(switch_names); ++i) { diff --git a/chrome/renderer/render_process.cc b/chrome/renderer/render_process.cc index 0c579ea..fbe38cf 100644 --- a/chrome/renderer/render_process.cc +++ b/chrome/renderer/render_process.cc @@ -85,6 +85,10 @@ RenderProcess::RenderProcess() if (command_line.HasSwitch(switches::kInternalNaCl)) RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess); + if (command_line.HasSwitch(switches::kEnableByteRangeSupport)) { + webkit_glue::SetMediaCacheEnabled(true); + } + FilePath module_path; initialized_media_library_ = PathService::Get(base::DIR_MODULE, &module_path) && |