refactor: remove ToV8(isolate, const char*) (#46108)
This commit is contained in:
parent
86cc9f626f
commit
c4800d9934
3 changed files with 7 additions and 13 deletions
|
@ -459,11 +459,14 @@ std::vector<content::RenderFrameHost*> WebFrameMain::FramesInSubtree() const {
|
|||
return frame_hosts;
|
||||
}
|
||||
|
||||
const char* WebFrameMain::LifecycleStateForTesting() const {
|
||||
std::string_view WebFrameMain::LifecycleStateForTesting() const {
|
||||
if (!HasRenderFrame())
|
||||
return {};
|
||||
return content::RenderFrameHostImpl::LifecycleStateImplToString(
|
||||
GetLifecycleState(render_frame_host()));
|
||||
if (const char* str =
|
||||
content::RenderFrameHostImpl::LifecycleStateImplToString(
|
||||
GetLifecycleState(render_frame_host())))
|
||||
return str;
|
||||
return {};
|
||||
}
|
||||
|
||||
v8::Local<v8::Promise> WebFrameMain::CollectDocumentJSCallStack(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue