| 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/message_center_display_service.h" | 5 #include "chrome/browser/notifications/message_center_display_service.h" |
| 6 | 6 |
| 7 #include "chrome/browser/notifications/notification.h" | 7 #include "chrome/browser/notifications/notification.h" |
| 8 #include "chrome/browser/notifications/notification_ui_manager.h" | 8 #include "chrome/browser/notifications/notification_ui_manager.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 | 34 |
| 35 bool MessageCenterDisplayService::GetDisplayed( | 35 bool MessageCenterDisplayService::GetDisplayed( |
| 36 std::set<std::string>* notifications) const { | 36 std::set<std::string>* notifications) const { |
| 37 DCHECK(notifications); | 37 DCHECK(notifications); |
| 38 for (auto notification_id : ui_manager_->GetAllIdsByProfile( | 38 for (auto notification_id : ui_manager_->GetAllIdsByProfile( |
| 39 NotificationUIManager::GetProfileID(profile_))) { | 39 NotificationUIManager::GetProfileID(profile_))) { |
| 40 notifications->insert(notification_id); | 40 notifications->insert(notification_id); |
| 41 } | 41 } |
| 42 return true; | 42 return true; |
| 43 } | 43 } |
| 44 | |
| 45 bool MessageCenterDisplayService::SupportsNotificationCenter() const { | |
| 46 return false; | |
| 47 } | |
| OLD | NEW |