Skip to content

Commit bf8de29

Browse files
trop[bot]ckerr
andauthored
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]>
1 parent 058a616 commit bf8de29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/browser/notifications/win/windows_toast_notification.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void DebugLog(std::string_view log_msg) {
7272
LOG(INFO) << log_msg;
7373
}
7474

75-
std::wstring GetTag(const std::string& notification_id) {
76-
return base::NumberToWString(base::Hash(notification_id));
75+
std::wstring GetTag(const std::string_view notification_id) {
76+
return base::NumberToWString(base::FastHash(notification_id));
7777
}
7878

7979
} // namespace

0 commit comments

Comments
 (0)