From: Cheng Zhao Date: Wed, 16 Apr 2014 07:45:28 +0000 (+0800) Subject: Use base::File::StringType. X-Git-Tag: v0.12.0~18^2~31 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=84397052fd873db3583712f004d3af864a45b20c;p=electron.git Use base::File::StringType. --- diff --git a/atom/common/v8_converters/file_path_converter.h b/atom/common/v8_converters/file_path_converter.h index e83dc44e..2606ed46 100644 --- a/atom/common/v8_converters/file_path_converter.h +++ b/atom/common/v8_converters/file_path_converter.h @@ -19,9 +19,9 @@ struct Converter { static bool FromV8(v8::Isolate* isolate, v8::Handle val, base::FilePath* out) { - std::string path; + base::FilePath::StringType path; if (Converter::FromV8(isolate, val, &path)) { - *out = base::FilePath::FromUTF8Unsafe(path); + *out = base::FilePath(path); return true; } else { return false;