From c9b7fc29228a5404a6f35d0768947e241e5f3258 Mon Sep 17 00:00:00 2001 From: Tomas Rycl Date: Wed, 18 Oct 2017 09:33:21 +0000 Subject: [PATCH] It fixes crash in tests on Windows Notification delegate copies the notification ID string instead of storing reference. --- brightray/browser/notification_delegate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightray/browser/notification_delegate.h b/brightray/browser/notification_delegate.h index 5cec922df7f..3bd98dd76dc 100644 --- a/brightray/browser/notification_delegate.h +++ b/brightray/browser/notification_delegate.h @@ -32,7 +32,7 @@ class NotificationDelegate { virtual void NotificationDisplayed(); private: - const std::string& notification_id_; + const std::string notification_id_; DISALLOW_COPY_AND_ASSIGN(NotificationDelegate); };