diff options
author | pasko@google.com <pasko@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-13 12:37:44 +0000 |
---|---|---|
committer | pasko@google.com <pasko@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-13 12:37:44 +0000 |
commit | fa1d08ea2a17c5555eedbaa862d8ef68dbea8ba5 (patch) | |
tree | 3f648bf01127e44b2c5bcc345d7be4129e442b62 /net/disk_cache/disk_cache.h | |
parent | b95e72678f32d52db1c9fbc696fd4f3df825f060 (diff) | |
download | chromium_src-fa1d08ea2a17c5555eedbaa862d8ef68dbea8ba5.zip chromium_src-fa1d08ea2a17c5555eedbaa862d8ef68dbea8ba5.tar.gz chromium_src-fa1d08ea2a17c5555eedbaa862d8ef68dbea8ba5.tar.bz2 |
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
Diffstat (limited to 'net/disk_cache/disk_cache.h')
-rw-r--r-- | net/disk_cache/disk_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h index 13edd92..3b5c912 100644 --- a/net/disk_cache/disk_cache.h +++ b/net/disk_cache/disk_cache.h @@ -48,6 +48,7 @@ class Backend; // The pointer to receive the |backend| must remain valid until the operation // completes (the callback is notified). NET_EXPORT int CreateCacheBackend(net::CacheType type, + net::BackendType backend_type, const base::FilePath& path, int max_bytes, bool force, base::MessageLoopProxy* thread, |