From 84397052fd873db3583712f004d3af864a45b20c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 16 Apr 2014 15:45:28 +0800 Subject: [PATCH] Use base::File::StringType. --- atom/common/v8_converters/file_path_converter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0