tracing: fix docs and allow null values in file path conversion fromv8

This commit is contained in:
Robo 2015-11-13 02:36:38 +05:30
parent ce0167756e
commit 3d5437e0a4
2 changed files with 10 additions and 2 deletions

View file

@ -21,6 +21,9 @@ struct Converter<base::FilePath> {
static bool FromV8(v8::Isolate* isolate,
v8::Local<v8::Value> val,
base::FilePath* out) {
if (val->IsNull())
return true;
base::FilePath::StringType path;
if (Converter<base::FilePath::StringType>::FromV8(isolate, val, &path)) {
*out = base::FilePath(path);