refactor: remove stray .c_str()
calls for absl::StrFormat()
(#47578)
refactor: remove stray .c_str() calls for absl::StrFormat() StrFormat() understands std::string, std::string_view Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
79d6160bdc
commit
4268bf91e4
10 changed files with 27 additions and 34 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue