Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 267132: Http Cache: Enable byte-range support by default.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
===================================================================
--- chrome/browser/net/chrome_url_request_context.cc (revision 29212)
+++ chrome/browser/net/chrome_url_request_context.cc (working copy)
@@ -133,8 +133,8 @@
context->ssl_config_service_,
disk_cache_path.ToWStringHack(), cache_size);
- if (command_line.HasSwitch(switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
+ if (command_line.HasSwitch(switches::kDisableByteRangeSupport))
+ cache->set_enable_range_support(false);
bool record_mode = chrome::kRecordModeEnabled &&
command_line.HasSwitch(switches::kRecordMode);
@@ -235,8 +235,8 @@
context->http_transaction_factory_ = cache;
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
+ switches::kDisableByteRangeSupport))
+ cache->set_enable_range_support(false);
// The kWininetFtp switch is Windows specific because we have two FTP
// implementations on Windows.
@@ -308,8 +308,8 @@
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
+ switches::kDisableByteRangeSupport))
+ cache->set_enable_range_support(false);
cache->set_type(net::MEDIA_CACHE);
context->http_transaction_factory_ = cache;
« no previous file with comments | « no previous file | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698