diff options
author | mlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-05 01:27:34 +0000 |
---|---|---|
committer | mlloyd@chromium.org <mlloyd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-05 01:27:34 +0000 |
commit | c5d793460f95c90ceb9565f5f9e2e81c6f3db8cb (patch) | |
tree | 8f7a1e1b714715c2ec93d68ed86483665d53b6b7 /webkit/extensions | |
parent | 28a64238455dbf32d5c32a523226fa12c2541df1 (diff) | |
download | chromium_src-c5d793460f95c90ceb9565f5f9e2e81c6f3db8cb.zip chromium_src-c5d793460f95c90ceb9565f5f9e2e81c6f3db8cb.tar.gz chromium_src-c5d793460f95c90ceb9565f5f9e2e81c6f3db8cb.tar.bz2 |
Actually clear the disk cache, and keep it enabled, between benchmark runs.
Fixes a small TODO in the benchmarking extension. Keep the disk cache
turned on during benchmarking, and doom all entries between benchmark
runs, rather than disabling it entirely.
BUG=none
TEST=All tests pass.
Review URL: http://codereview.chromium.org/669115
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/extensions')
-rwxr-xr-x[-rw-r--r--] | webkit/extensions/v8/benchmarking_extension.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/webkit/extensions/v8/benchmarking_extension.cc b/webkit/extensions/v8/benchmarking_extension.cc index bac4677..362a928 100644..100755 --- a/webkit/extensions/v8/benchmarking_extension.cc +++ b/webkit/extensions/v8/benchmarking_extension.cc @@ -55,9 +55,7 @@ class BenchmarkingWrapper : public v8::Extension { } static v8::Handle<v8::Value> ClearCache(const v8::Arguments& args) { - // TODO(mbelshe): should be enable/disable? - webkit_glue::SetCacheMode(false); - + webkit_glue::ClearCache(); WebCache::clear(); return v8::Undefined(); } |