Update base::Value::CreateNullValue API changes.
This commit is contained in:
parent
d08392a0c4
commit
8fda175264
1 changed files with 3 additions and 3 deletions
|
@ -211,7 +211,7 @@ base::Value* V8ValueConverter::FromV8ValueImpl(
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (val->IsNull())
|
if (val->IsNull())
|
||||||
return base::Value::CreateNullValue();
|
return base::Value::CreateNullValue().release();
|
||||||
|
|
||||||
if (val->IsBoolean())
|
if (val->IsBoolean())
|
||||||
return new base::FundamentalValue(val->ToBoolean()->Value());
|
return new base::FundamentalValue(val->ToBoolean()->Value());
|
||||||
|
@ -271,7 +271,7 @@ base::Value* V8ValueConverter::FromV8Array(
|
||||||
FromV8ValueState* state,
|
FromV8ValueState* state,
|
||||||
v8::Isolate* isolate) const {
|
v8::Isolate* isolate) const {
|
||||||
if (!state->UpdateAndCheckUniqueness(val))
|
if (!state->UpdateAndCheckUniqueness(val))
|
||||||
return base::Value::CreateNullValue();
|
return base::Value::CreateNullValue().release();
|
||||||
|
|
||||||
scoped_ptr<v8::Context::Scope> scope;
|
scoped_ptr<v8::Context::Scope> scope;
|
||||||
// If val was created in a different context than our current one, change to
|
// If val was created in a different context than our current one, change to
|
||||||
|
@ -310,7 +310,7 @@ base::Value* V8ValueConverter::FromV8Object(
|
||||||
FromV8ValueState* state,
|
FromV8ValueState* state,
|
||||||
v8::Isolate* isolate) const {
|
v8::Isolate* isolate) const {
|
||||||
if (!state->UpdateAndCheckUniqueness(val))
|
if (!state->UpdateAndCheckUniqueness(val))
|
||||||
return base::Value::CreateNullValue();
|
return base::Value::CreateNullValue().release();
|
||||||
|
|
||||||
scoped_ptr<v8::Context::Scope> scope;
|
scoped_ptr<v8::Context::Scope> scope;
|
||||||
// If val was created in a different context than our current one, change to
|
// If val was created in a different context than our current one, change to
|
||||||
|
|
Loading…
Reference in a new issue