Remove base::Value::GetType()
https://chromium-review.googlesource.com/718458
This commit is contained in:
parent
343c42e4ef
commit
2c4bbacec1
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ base::Value* V8ValueConverter::FromV8Value(
|
||||||
v8::Local<v8::Value> V8ValueConverter::ToV8ValueImpl(
|
v8::Local<v8::Value> V8ValueConverter::ToV8ValueImpl(
|
||||||
v8::Isolate* isolate,
|
v8::Isolate* isolate,
|
||||||
const base::Value* value) const {
|
const base::Value* value) const {
|
||||||
switch (value->GetType()) {
|
switch (value->type()) {
|
||||||
case base::Value::Type::NONE:
|
case base::Value::Type::NONE:
|
||||||
return v8::Null(isolate);
|
return v8::Null(isolate);
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ v8::Local<v8::Value> V8ValueConverter::ToV8ValueImpl(
|
||||||
return ToArrayBuffer(isolate, static_cast<const base::Value*>(value));
|
return ToArrayBuffer(isolate, static_cast<const base::Value*>(value));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOG(ERROR) << "Unexpected value type: " << value->GetType();
|
LOG(ERROR) << "Unexpected value type: " << value->type();
|
||||||
return v8::Null(isolate);
|
return v8::Null(isolate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue