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

Unified Diff: chrome/browser/visitedlink_perftest.cc

Issue 9639: Port flush_cache tool. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years 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 | « chrome/browser/safe_browsing/safe_browsing_database.h ('k') | chrome/chrome.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/visitedlink_perftest.cc
===================================================================
--- chrome/browser/visitedlink_perftest.cc (revision 6884)
+++ chrome/browser/visitedlink_perftest.cc (working copy)
@@ -6,6 +6,7 @@
#include <string>
#include <vector>
+#include "base/file_path.h"
#include "base/file_util.h"
#include "base/perftimer.h"
#include "base/shared_memory.h"
@@ -143,7 +144,8 @@
for (int i = 0; i < load_count; i++)
{
// make sure the file has to be re-loaded
- file_util::EvictFileFromSystemCache(db_name_.c_str());
+ file_util::EvictFileFromSystemCache(
+ FilePath::FromWStringHack(std::wstring(db_name_)));
// cold load (no OS cache, hopefully)
{
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database.h ('k') | chrome/chrome.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698