diff --git a/shell/browser/notifications/win/windows_toast_notification.cc b/shell/browser/notifications/win/windows_toast_notification.cc index 35a09f02d210..1c4fa0bd47d2 100644 --- a/shell/browser/notifications/win/windows_toast_notification.cc +++ b/shell/browser/notifications/win/windows_toast_notification.cc @@ -666,8 +666,8 @@ IFACEMETHODIMP ToastEventHandler::Invoke( winui::Notifications::IToastFailedEventArgs* e) { HRESULT error; e->get_ErrorCode(&error); - std::string errorMessage = - "Notification failed. HRESULT:" + std::to_string(error); + std::string errorMessage = base::StrCat( + {"Notification failed. HRESULT:", base::NumberToString(error)}); content::GetUIThreadTaskRunner({})->PostTask( FROM_HERE, base::BindOnce(&Notification::NotificationFailed, notification_, errorMessage));