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

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

Issue 2095223002: Refactor notification operation functionality out of PNS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove renamed files Created 4 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
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 3c5fd2c796fa8ebae69e0bb159ec484456440827..70f3aeae3dab8f77e9c9b45e4c98a892d88619fb 100644
--- a/chrome/browser/notifications/persistent_notification_delegate.cc
+++ b/chrome/browser/notifications/persistent_notification_delegate.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/guid.h"
+#include "chrome/browser/notifications/notification_common.h"
#include "chrome/browser/notifications/platform_notification_service_impl.h"
#include "content/public/common/persistent_notification_status.h"
@@ -43,8 +44,7 @@ void PersistentNotificationDelegate::Click() {
void PersistentNotificationDelegate::ButtonClick(int button_index) {
DCHECK_GE(button_index, 0);
if (button_index == notification_settings_index_) {
- PlatformNotificationServiceImpl::GetInstance()->OpenNotificationSettings(
- browser_context_);
+ NotificationCommon::OpenNotificationSettings(browser_context_);
return;
}
@@ -56,8 +56,7 @@ void PersistentNotificationDelegate::ButtonClick(int button_index) {
}
void PersistentNotificationDelegate::SettingsClick() {
- PlatformNotificationServiceImpl::GetInstance()->OpenNotificationSettings(
- browser_context_);
+ NotificationCommon::OpenNotificationSettings(browser_context_);
return;
}

Powered by Google App Engine
This is Rietveld 408576698