diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index fb8d3ff541..48304f67bc 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -1344,7 +1344,7 @@ content::KeyboardEventProcessingResult WebContents::PreHandleKeyboardEvent( } void WebContents::ContentsZoomChange(bool zoom_in) { - Emit("zoom-changed", zoom_in ? "in" : "out"); + Emit("zoom-changed", std::string_view{zoom_in ? "in" : "out"}); } Profile* WebContents::GetProfile() { diff --git a/shell/common/gin_converters/std_converter.h b/shell/common/gin_converters/std_converter.h index de499cf467..96ffb82818 100644 --- a/shell/common/gin_converters/std_converter.h +++ b/shell/common/gin_converters/std_converter.h @@ -54,14 +54,6 @@ struct Converter { } }; -template <> -struct Converter { - static v8::Local ToV8(v8::Isolate* isolate, const char* val) { - return v8::String::NewFromUtf8(isolate, val, v8::NewStringType::kNormal) - .ToLocalChecked(); - } -}; - template <> struct Converter { static v8::Local ToV8(v8::Isolate* isolate, const char* val) {