refactor: remove stray .c_str() calls for absl::StrFormat() (#47548)

refactor: remove stray .c_str() calls for absl::StrFormat()

StrFormat() understands std::string, std::string_view
This commit is contained in:
Charles Kerr
2025-06-26 04:41:30 -05:00
committed by GitHub
parent 7a274a711c
commit f50ad3d022
10 changed files with 27 additions and 34 deletions

View File

@@ -185,8 +185,8 @@ RendererClientBase* RendererClientBase::Get() {
void RendererClientBase::BindProcess(v8::Isolate* isolate,
gin_helper::Dictionary* process,
content::RenderFrame* render_frame) {
auto context_id = absl::StrFormat("%s-%" PRId64, renderer_client_id_.c_str(),
++next_context_id_);
auto context_id =
absl::StrFormat("%s-%" PRId64, renderer_client_id_, ++next_context_id_);
process->SetReadOnly("isMainFrame", render_frame->IsMainFrame());
process->SetReadOnly("contextIsolated",