From daca2d327f221c9fc36e78215e3f257a60b2c7dd Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 20:46:26 -0500 Subject: [PATCH] fix: remove use of deprecated API base::Hash() (#44101) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/browser/notifications/win/windows_toast_notification.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/notifications/win/windows_toast_notification.cc b/shell/browser/notifications/win/windows_toast_notification.cc index 6069bdeae07..35a09f02d21 100644 --- a/shell/browser/notifications/win/windows_toast_notification.cc +++ b/shell/browser/notifications/win/windows_toast_notification.cc @@ -72,8 +72,8 @@ void DebugLog(std::string_view log_msg) { LOG(INFO) << log_msg; } -std::wstring GetTag(const std::string& notification_id) { - return base::NumberToWString(base::Hash(notification_id)); +std::wstring GetTag(const std::string_view notification_id) { + return base::NumberToWString(base::FastHash(notification_id)); } } // namespace