Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Unified Diff: webkit/extensions/v8/benchmarking_extension.cc

Issue 1521010: Eliminate WebCore include paths when compiling Chromium code.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | webkit/extensions/v8/gc_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/extensions/v8/benchmarking_extension.cc
===================================================================
--- webkit/extensions/v8/benchmarking_extension.cc (revision 43569)
+++ webkit/extensions/v8/benchmarking_extension.cc (working copy)
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "config.h"
-#include "Cache.h"
#include "base/stats_table.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebCache.h"
#include "webkit/extensions/v8/benchmarking_extension.h"
#include "webkit/glue/webkit_glue.h"
+using WebKit::WebCache;
+
namespace extensions_v8 {
const char* kBenchmarkingExtensionName = "v8/Benchmarking";
@@ -57,9 +58,7 @@
// TODO(mbelshe): should be enable/disable?
webkit_glue::SetCacheMode(false);
- // Disabling and re-enabling the cache forces it to flush.
- WebCore::cache()->setDisabled(true);
- WebCore::cache()->setDisabled(false);
+ WebCache::clear();
return v8::Undefined();
}
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | webkit/extensions/v8/gc_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698