]> khamidou — GitHub mirrors - electron.git/commitdiff
Use base::File::StringType.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 16 Apr 2014 07:45:28 +0000 (15:45 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 16 Apr 2014 07:45:28 +0000 (15:45 +0800)
atom/common/v8_converters/file_path_converter.h

index e83dc44ec81041997593b59c3e9253ff501cd0fb..2606ed46c5d5013f479bdde3356c8ba20c8fe044 100644 (file)
@@ -19,9 +19,9 @@ struct Converter<base::FilePath> {
   static bool FromV8(v8::Isolate* isolate,
                      v8::Handle<v8::Value> val,
                      base::FilePath* out) {
-    std::string path;
+    base::FilePath::StringType path;
     if (Converter<std::string>::FromV8(isolate, val, &path)) {
-      *out = base::FilePath::FromUTF8Unsafe(path);
+      *out = base::FilePath(path);
       return true;
     } else {
       return false;