From 8ff0b050f878157bcdc38c29a4dfb49ec5f2c016 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 16 Nov 2015 16:47:34 +0800 Subject: [PATCH] There is no more NotificationError --- brightray/browser/win/windows_toast_notification.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/brightray/browser/win/windows_toast_notification.cc b/brightray/browser/win/windows_toast_notification.cc index dd060d10e394..b3701dedbdf4 100644 --- a/brightray/browser/win/windows_toast_notification.cc +++ b/brightray/browser/win/windows_toast_notification.cc @@ -12,7 +12,7 @@ using namespace ABI::Windows::Data::Xml::Dom; namespace brightray { - + WindowsToastNotification::WindowsToastNotification( const std::string& app_name, scoped_ptr delegate) @@ -20,7 +20,7 @@ WindowsToastNotification::WindowsToastNotification( weak_factory_(this) { // If it wasn't for Windows 7, we could do this statically HRESULT init = Windows::Foundation::Initialize(RO_INIT_MULTITHREADED); - + ScopedHString toast_manager_str( RuntimeClass_Windows_UI_Notifications_ToastNotificationManager); if (!toast_manager_str.success()) @@ -86,7 +86,6 @@ void WindowsToastNotification::NotificationDismissed() { } void WindowsToastNotification::NotificationFailed() { - delegate_->NotificationError(); delete this; }