Override server-side simple-cache trial with commandline switches.
commitfa1d08ea2a17c5555eedbaa862d8ef68dbea8ba5
authorpasko@google.com <pasko@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 13 May 2013 12:37:44 +0000 (13 12:37 +0000)
committerpasko@google.com <pasko@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 13 May 2013 12:37:44 +0000 (13 12:37 +0000)
tree3f648bf01127e44b2c5bcc345d7be4129e442b62
parentb95e72678f32d52db1c9fbc696fd4f3df825f060
Override server-side simple-cache trial with commandline switches.

FIXING broken about:flags for simple cache on Android.

Until recently we used a trick to avoid dedicated global settings in
net::disk_cache other than the objects belonging to the infrastructure of the
trials. The commandline flag would change the experiment group on the chromium
side, while one the net/ side we would check which group we belong to.

Later we decided to switch to the server-controlled experiments. This went into
a conflict with our approach: the server-controlled experiment would override
the settings set by the command-line option. This is unfortunate.

Stevet@ suggests that there are plans to avoid overriding the experiment groups
by the server config, but in the meantime the trick stops working.

Solve this by adding backend type enum provided at backend instantiation.

TBR=jam@chromium.org
BUG=239461

Review URL: https://chromiumcodereview.appspot.com/14828004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199708 0039d316-1c4b-4281-b951-d872f2087c98
16 files changed:
android_webview/browser/net/aw_url_request_context_getter.cc
chrome/browser/profiles/profile_impl_io_data.cc
content/browser/gpu/shader_disk_cache.cc
content/shell/shell_url_request_context_getter.cc
net/base/cache_type.h
net/disk_cache/backend_unittest.cc
net/disk_cache/cache_creator.cc
net/disk_cache/disk_cache.h
net/disk_cache/disk_cache_perftest.cc
net/http/http_cache.cc
net/http/http_cache.h
net/tools/dump_cache/simple_cache_dumper.cc
net/tools/dump_cache/upgrade_win.cc
net/url_request/url_request_context_builder.cc
webkit/appcache/appcache_disk_cache.cc
webkit/tools/test_shell/test_shell_request_context.cc