diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-07 02:36:41 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-07 02:36:41 +0000 |
commit | e6f7a0abccc7a0513e1e3654e06f6fc819933ebd (patch) | |
tree | 73891cf2c3e158a874fbf9c413b960d2d38f9454 /android_webview/browser | |
parent | 9369959b5cf0ff21d0285e260ea30bec4cae83bf (diff) | |
download | chromium_src-e6f7a0abccc7a0513e1e3654e06f6fc819933ebd.zip chromium_src-e6f7a0abccc7a0513e1e3654e06f6fc819933ebd.tar.gz chromium_src-e6f7a0abccc7a0513e1e3654e06f6fc819933ebd.tar.bz2 |
aw: Remove kDisableSimpleCache switch
Simple cache has been shipping on android stable for a few releases now.
No need to have switch to disable it.
BUG=350143
NOTRY=true
Review URL: https://codereview.chromium.org/187693009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/browser')
-rw-r--r-- | android_webview/browser/net/aw_url_request_context_getter.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc index f75e203..2ee7525 100644 --- a/android_webview/browser/net/aw_url_request_context_getter.cc +++ b/android_webview/browser/net/aw_url_request_context_getter.cc @@ -191,11 +191,6 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() { // TODO(mnaganov): Fix URLRequestContextBuilder to use proper threads. net::HttpNetworkSession::Params network_session_params; - net::BackendType cache_type = net::CACHE_BACKEND_SIMPLE; - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kDisableSimpleCache)) { - cache_type = net::CACHE_BACKEND_BLOCKFILE; - } PopulateNetworkSessionParams(url_request_context_.get(), &network_session_params); @@ -203,7 +198,7 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() { network_session_params, new net::HttpCache::DefaultBackend( net::DISK_CACHE, - cache_type, + net::CACHE_BACKEND_SIMPLE, partition_path_.Append(FILE_PATH_LITERAL("Cache")), 20 * 1024 * 1024, // 20M BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE))); |