From d7da28f4ce15aa60128ef24a6bd545f8031e4f37 Mon Sep 17 00:00:00 2001 From: brave-builds Date: Tue, 23 Apr 2019 09:47:08 +0000 Subject: [PATCH] Uplift of #2315 (squashed) to release --- .../extension_rewards_notification_service_observer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/brave_rewards/browser/extension_rewards_notification_service_observer.cc b/components/brave_rewards/browser/extension_rewards_notification_service_observer.cc index ab679da0ee2e..ef03faa8a801 100644 --- a/components/brave_rewards/browser/extension_rewards_notification_service_observer.cc +++ b/components/brave_rewards/browser/extension_rewards_notification_service_observer.cc @@ -30,7 +30,7 @@ void ExtensionRewardsNotificationServiceObserver::OnNotificationAdded( rewards_notification) { extensions::EventRouter* event_router = extensions::EventRouter::Get(profile_); - if (event_router) { + if (!event_router) { return; } @@ -94,7 +94,7 @@ void ExtensionRewardsNotificationServiceObserver::OnGetNotification( rewards_notification) { extensions::EventRouter* event_router = extensions::EventRouter::Get(profile_); - if (event_router) { + if (!event_router) { return; } @@ -116,7 +116,7 @@ void ExtensionRewardsNotificationServiceObserver::OnGetAllNotifications( rewards_notifications_list) { extensions::EventRouter* event_router = extensions::EventRouter::Get(profile_); - if (event_router) { + if (!event_router) { return; }