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

Unified Diff: chrome/browser/notifications/persistent_notification_delegate.cc

Issue 1072043003: Clean up the NotificationUIManagerAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Patch Set: Created 5 years, 8 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
Index: chrome/browser/notifications/persistent_notification_delegate.cc
diff --git a/chrome/browser/notifications/persistent_notification_delegate.cc b/chrome/browser/notifications/persistent_notification_delegate.cc
index 84a2576605af4cebfafc8a8f483ffa4f8338a9a6..fa9b761bf549a7f3cc67cc9544addf7d053a53db 100644
--- a/chrome/browser/notifications/persistent_notification_delegate.cc
+++ b/chrome/browser/notifications/persistent_notification_delegate.cc
@@ -9,14 +9,6 @@
#include "chrome/browser/notifications/platform_notification_service_impl.h"
#include "content/public/common/persistent_notification_status.h"
-namespace {
-
-// Persistent notifications fired through the delegate do not care about the
-// lifetime of the Service Worker responsible for executing the event.
-void OnEventDispatchComplete(content::PersistentNotificationStatus status) {}
-
-} // namespace
-
PersistentNotificationDelegate::PersistentNotificationDelegate(
content::BrowserContext* browser_context,
int64_t persistent_notification_id,
@@ -36,8 +28,7 @@ void PersistentNotificationDelegate::Click() {
PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick(
browser_context_,
persistent_notification_id_,
- origin_,
- base::Bind(&OnEventDispatchComplete));
+ origin_);
}
std::string PersistentNotificationDelegate::id() const {

Powered by Google App Engine
This is Rietveld 408576698