Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: content/test/mock_platform_notification_service.cc

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: fix test Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/tools/build/mac/verify_order ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_platform_notification_service.cc
diff --git a/content/test/mock_platform_notification_service.cc b/content/test/mock_platform_notification_service.cc
index 58db6968fe6370e92f3b5b40d25727755656d135..df3a32e783b7feebd3ebc6715d06b4850c7010da 100644
--- a/content/test/mock_platform_notification_service.cc
+++ b/content/test/mock_platform_notification_service.cc
@@ -166,11 +166,9 @@ void MockPlatformNotificationService::Close(
DCHECK_CURRENTLY_ON(BrowserThread::UI);
const auto non_persistent_iter =
non_persistent_notifications_.find(notification_id);
- if (non_persistent_iter == non_persistent_notifications_.end()) {
- NotificationEventDispatcher::GetInstance()->DispatchNonPersistentCloseEvent(
- notification_id);
- non_persistent_notifications_.erase(non_persistent_iter);
- }
+ content::NotificationEventDispatcher::GetInstance()
+ ->DispatchNonPersistentCloseEvent(notification_id);
+ non_persistent_notifications_.erase(non_persistent_iter);
}
void MockPlatformNotificationService::ReplaceNotificationIfNeeded(
« no previous file with comments | « chrome/tools/build/mac/verify_order ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698