../../chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc:106:7: error: no matching constructor for initialization of 'BoundSessionRefreshCookieFetcher::Result' Result(net_error, headers ? absl::optional(headers->response_code()) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher.h:17:10: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided struct Result { ^ --- a/chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc +++ b/chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc @@ -101,8 +101,8 @@ void BoundSessionRefreshCookieFetcherImp void BoundSessionRefreshCookieFetcherImpl::OnURLLoaderComplete( scoped_refptr headers) { net::Error net_error = static_cast(url_loader_->NetError()); + Result r = { net_error, headers ? absl::optional(headers->response_code()) + : absl::nullopt }; - std::move(callback_).Run( - Result(net_error, headers ? absl::optional(headers->response_code()) - : absl::nullopt)); + std::move(callback_).Run(r); }