]> khamidou — GitHub mirrors - electron.git/commitdiff
Convert std::string path to a FilePath to get compiling working on Windows
authorkirkouimet <kirk@kirkouimet.com>
Tue, 9 Jun 2015 22:56:54 +0000 (15:56 -0700)
committerkirkouimet <kirk@kirkouimet.com>
Tue, 9 Jun 2015 22:56:54 +0000 (15:56 -0700)
atom/common/crash_reporter/crash_reporter.cc

index 365860b256c7716164a04f1a558eb30629179c77..144542086a1fa2825694bd2131df1d50ef2f6822 100644 (file)
@@ -46,7 +46,7 @@ std::vector<CrashReporter::UploadReportResult>
 CrashReporter::GetUploadedReports(const std::string& path) {
   std::string file_content;
   std::vector<CrashReporter::UploadReportResult> result;
-  if (base::ReadFileToString(base::FilePath(path), &file_content)) {
+  if (base::ReadFileToString(base::FilePath::FromUTF8Unsafe(path), &file_content)) {
     std::vector<std::string> reports;
     base::SplitString(file_content, '\n', &reports);
     for (const std::string& report : reports) {