mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use base::File::StringType.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user