mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
refactor: remove ToV8(isolate, const char*) (#46108)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -136,7 +136,7 @@ class WebFrameMain final : public gin::Wrappable<WebFrameMain>,
|
||||
std::vector<content::RenderFrameHost*> Frames() const;
|
||||
std::vector<content::RenderFrameHost*> FramesInSubtree() const;
|
||||
|
||||
const char* LifecycleStateForTesting() const;
|
||||
std::string_view LifecycleStateForTesting() const;
|
||||
|
||||
v8::Local<v8::Promise> CollectDocumentJSCallStack(gin::Arguments* args);
|
||||
void CollectedJavaScriptCallStack(
|
||||
|
||||
Reference in New Issue
Block a user