From 9df092e034f25cdbe035f942ec4adc46f1e85190 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 2 Oct 2024 15:36:06 -0500 Subject: [PATCH] fix: remove use of deprecated API base::Hash() (#44076) --- 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 9c0947b2d0..b4e39ccd77 100644 --- a/shell/browser/notifications/win/windows_toast_notification.cc +++ b/shell/browser/notifications/win/windows_toast_notification.cc @@ -70,8 +70,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