Use base::File::StringType.

This commit is contained in:
Cheng Zhao 2014-04-16 15:45:28 +08:00
parent a2407c6b02
commit 84397052fd

View 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;