summaryrefslogtreecommitdiffstats
path: root/chrome/tools/perf
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 20:14:13 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 20:14:13 +0000
commitafa5a314c7d3698c8065ba824e5700c2af211844 (patch)
tree3be3f505dd3d5609eaaae5c0189892fa30302885 /chrome/tools/perf
parent1ecbf13615d89a0e0369cab2e70692d5b9a46341 (diff)
downloadchromium_src-afa5a314c7d3698c8065ba824e5700c2af211844.zip
chromium_src-afa5a314c7d3698c8065ba824e5700c2af211844.tar.gz
chromium_src-afa5a314c7d3698c8065ba824e5700c2af211844.tar.bz2
Reverting 6815.
Review URL: http://codereview.chromium.org/14006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/perf')
-rw-r--r--chrome/tools/perf/flush_cache/flush_cache.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/tools/perf/flush_cache/flush_cache.cc b/chrome/tools/perf/flush_cache/flush_cache.cc
index e178da4e..d6ba850 100644
--- a/chrome/tools/perf/flush_cache/flush_cache.cc
+++ b/chrome/tools/perf/flush_cache/flush_cache.cc
@@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This little program attempts to flush the system cache for some files.
+// This little program attempts to flush the disk cache for some files.
// It's useful for testing Chrome with a cold database.
-#include "base/file_path.h"
#include "base/string_piece.h"
#include "base/process_util.h"
#include "base/sys_string_conversions.h"
@@ -21,8 +20,7 @@ int main(int argc, const char* argv[]) {
for (int i = 1; i < argc; ++i) {
std::wstring filename = base::SysNativeMBToWide(argv[i]);
- FilePath path = FilePath::FromWStringHack(filename);
- if (!file_util::EvictFileFromSystemCache(path)) {
+ if (!file_util::EvictFileFromSystemCache(filename.c_str())) {
fprintf(stderr, "Failed to evict %s from cache -- is it a directory?\n",
argv[i]);
}