Convert std::string path to a FilePath to get compiling working on Windows

This commit is contained in:
kirkouimet 2015-06-09 15:56:54 -07:00
parent 8aa815e6d1
commit f91a81fe77

View 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) {