From: kirkouimet Date: Tue, 9 Jun 2015 22:56:54 +0000 (-0700) Subject: Convert std::string path to a FilePath to get compiling working on Windows X-Git-Tag: v0.28.0~10^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f91a81fe77aa59a75792c8f7bd3b7510acfcd017;p=electron.git Convert std::string path to a FilePath to get compiling working on Windows --- diff --git a/atom/common/crash_reporter/crash_reporter.cc b/atom/common/crash_reporter/crash_reporter.cc index 365860b2..14454208 100644 --- a/atom/common/crash_reporter/crash_reporter.cc +++ b/atom/common/crash_reporter/crash_reporter.cc @@ -46,7 +46,7 @@ std::vector CrashReporter::GetUploadedReports(const std::string& path) { std::string file_content; std::vector result; - if (base::ReadFileToString(base::FilePath(path), &file_content)) { + if (base::ReadFileToString(base::FilePath::FromUTF8Unsafe(path), &file_content)) { std::vector reports; base::SplitString(file_content, '\n', &reports); for (const std::string& report : reports) {