diff --git a/shell/common/gin_converters/std_converter.h b/shell/common/gin_converters/std_converter.h index 1230334e6f10..eb5f87d22e3d 100644 --- a/shell/common/gin_converters/std_converter.h +++ b/shell/common/gin_converters/std_converter.h @@ -21,7 +21,7 @@ namespace gin { template v8::Local ConvertToV8(v8::Isolate* isolate, T&& input) { return Converter::type>::ToV8( - isolate, std::move(input)); + isolate, std::forward(input)); } #if !defined(OS_LINUX) && !defined(OS_FREEBSD) diff --git a/shell/renderer/api/electron_api_context_bridge.cc b/shell/renderer/api/electron_api_context_bridge.cc index ef3a130fcabf..c937c616b276 100644 --- a/shell/renderer/api/electron_api_context_bridge.cc +++ b/shell/renderer/api/electron_api_context_bridge.cc @@ -282,9 +282,9 @@ v8::MaybeLocal PassValueToOtherContext( ignore_result(source_promise->Then( source_context, - gin::ConvertToV8(destination_context->GetIsolate(), then_cb) + gin::ConvertToV8(destination_context->GetIsolate(), std::move(then_cb)) .As(), - gin::ConvertToV8(destination_context->GetIsolate(), catch_cb) + gin::ConvertToV8(destination_context->GetIsolate(), std::move(catch_cb)) .As())); object_cache->CacheProxiedObject(value, proxied_promise_handle);