Browse Source

fix: remove use of deprecated API base::Hash() (#44102)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <[email protected]>
trop[bot] 6 months ago
parent
commit
bf8de29f9b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      shell/browser/notifications/win/windows_toast_notification.cc

+ 2 - 2
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