summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 22:07:37 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 22:07:37 +0000
commit7bd394d220e29b212b9480cb8a7f4986cb8275ce (patch)
tree18342f9a8c2b2b840af8cea6ccf127902b0d1253 /chrome
parent1db97ce76cad4c569c4ae79ad1422620ea5d97cf (diff)
downloadchromium_src-7bd394d220e29b212b9480cb8a7f4986cb8275ce.zip
chromium_src-7bd394d220e29b212b9480cb8a7f4986cb8275ce.tar.gz
chromium_src-7bd394d220e29b212b9480cb8a7f4986cb8275ce.tar.bz2
Revert cl 24015
BUG=none TEST=none Review URL: http://codereview.chromium.org/174260 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc14
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h2
3 files changed, 1 insertions, 18 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index da77fcf..5bb921b 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -125,9 +125,6 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOriginal(
context->ssl_config_service_,
disk_cache_path.ToWStringHack(), cache_size);
- if (command_line.HasSwitch(switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
-
bool record_mode = chrome::kRecordModeEnabled &&
command_line.HasSwitch(switches::kRecordMode);
bool playback_mode = command_line.HasSwitch(switches::kPlaybackMode);
@@ -210,15 +207,10 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOffTheRecord(
context->proxy_service_ =
profile->GetOriginalProfile()->GetRequestContext()->proxy_service();
- net::HttpCache* cache =
+ context->http_transaction_factory_ =
new net::HttpCache(context->host_resolver_, context->proxy_service_,
context->ssl_config_service_, 0);
context->cookie_store_ = new net::CookieMonster;
- context->http_transaction_factory_ = cache;
-
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
// The kWininetFtp switch is Windows specific because we have two FTP
// implementations on Windows.
@@ -287,10 +279,6 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateRequestContextForMedia(
disk_cache_path.ToWStringHack(), cache_size);
}
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
-
cache->set_type(net::MEDIA_CACHE);
context->http_transaction_factory_ = cache;
return context;
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index a232be0..c62c4db 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -591,7 +591,4 @@ const wchar_t kSyncServiceURL[] = L"sync-url";
const wchar_t kCookiePipe[] = L"cookie-pipe";
#endif
-// Enable experimental support for cached byte-ranges.
-const wchar_t kEnableByteRangeSupport[] = L"enable-byte-range-support";
-
} // namespace switches
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index fce1b69..e4dc936 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -239,8 +239,6 @@ extern const wchar_t kSyncServiceURL[];
extern const wchar_t kCookiePipe[];
#endif
-extern const wchar_t kEnableByteRangeSupport[];
-
} // namespace switches
#endif // CHROME_COMMON_CHROME_SWITCHES_H_