| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/notifications/persistent_notification_handler.h" | 5 #include "chrome/browser/notifications/persistent_notification_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 8 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const GURL notification_origin(origin); | 34 const GURL notification_origin(origin); |
| 35 DCHECK(notification_origin.is_valid()); | 35 DCHECK(notification_origin.is_valid()); |
| 36 | 36 |
| 37 PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick( | 37 PlatformNotificationServiceImpl::GetInstance()->OnPersistentNotificationClick( |
| 38 profile, notification_id, notification_origin, action_index, reply); | 38 profile, notification_id, notification_origin, action_index, reply); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void PersistentNotificationHandler::OpenSettings(Profile* profile) { | 41 void PersistentNotificationHandler::OpenSettings(Profile* profile) { |
| 42 NotificationCommon::OpenNotificationSettings(profile); | 42 NotificationCommon::OpenNotificationSettings(profile); |
| 43 } | 43 } |
| 44 | |
| 45 void PersistentNotificationHandler::RegisterNotification( | |
| 46 const std::string& notification_id, | |
| 47 NotificationDelegate* delegate) { | |
| 48 // Nothing to do here since there is no state kept. | |
| 49 } | |
| OLD | NEW |