diff options
Diffstat (limited to 'base/perftimer.cc')
-rw-r--r-- | base/perftimer.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/perftimer.cc b/base/perftimer.cc index 9fc0328..4c64c5e 100644 --- a/base/perftimer.cc +++ b/base/perftimer.cc @@ -8,19 +8,20 @@ #include <string> #include "base/basictypes.h" +#include "base/file_path.h" #include "base/file_util.h" #include "base/logging.h" static FILE* perf_log_file = NULL; -bool InitPerfLog(const char* log_file) { +bool InitPerfLog(const FilePath& log_file) { if (perf_log_file) { // trying to initialize twice NOTREACHED(); return false; } - perf_log_file = file_util::OpenFile(std::string(log_file), "w"); + perf_log_file = file_util::OpenFile(log_file, "w"); return perf_log_file != NULL; } |