Update base::Value::CreateNullValue API changes.

This commit is contained in:
Haojian Wu 2015-08-04 16:33:38 +08:00 committed by Cheng Zhao
parent d08392a0c4
commit 8fda175264

View file

@ -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