refactor: remove unused C string ToV8() gin converter (#44523)
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
faa1910ffe
commit
2e33636033
2 changed files with 1 additions and 9 deletions
|
@ -1312,7 +1312,7 @@ content::KeyboardEventProcessingResult WebContents::PreHandleKeyboardEvent(
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::ContentsZoomChange(bool zoom_in) {
|
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() {
|
Profile* WebContents::GetProfile() {
|
||||||
|
|
|
@ -54,14 +54,6 @@ struct Converter<std::nullptr_t> {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <>
|
|
||||||
struct Converter<const char*> {
|
|
||||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, const char* val) {
|
|
||||||
return v8::String::NewFromUtf8(isolate, val, v8::NewStringType::kNormal)
|
|
||||||
.ToLocalChecked();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct Converter<char[]> {
|
struct Converter<char[]> {
|
||||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, const char* val) {
|
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, const char* val) {
|
||||||
|
|
Loading…
Reference in a new issue