| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/display/display_util.h" | 5 #include "ash/display/display_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/common/display/display_info.h" | 9 #include "ash/common/display/display_info.h" |
| 10 #include "ash/common/system/system_notifier.h" | 10 #include "ash/common/system/system_notifier.h" |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 system_notifier::kNotifierDisplayError), | 458 system_notifier::kNotifierDisplayError), |
| 459 message_center::RichNotificationData(), | 459 message_center::RichNotificationData(), |
| 460 new DisplayErrorNotificationDelegate)); | 460 new DisplayErrorNotificationDelegate)); |
| 461 message_center::MessageCenter::Get()->AddNotification( | 461 message_center::MessageCenter::Get()->AddNotification( |
| 462 std::move(notification)); | 462 std::move(notification)); |
| 463 } | 463 } |
| 464 | 464 |
| 465 base::string16 GetDisplayErrorNotificationMessageForTest() { | 465 base::string16 GetDisplayErrorNotificationMessageForTest() { |
| 466 message_center::NotificationList::Notifications notifications = | 466 message_center::NotificationList::Notifications notifications = |
| 467 message_center::MessageCenter::Get()->GetVisibleNotifications(); | 467 message_center::MessageCenter::Get()->GetVisibleNotifications(); |
| 468 for (auto const notification : notifications) { | 468 for (auto* const notification : notifications) { |
| 469 if (notification->id() == kDisplayErrorNotificationId) | 469 if (notification->id() == kDisplayErrorNotificationId) |
| 470 return notification->message(); | 470 return notification->message(); |
| 471 } | 471 } |
| 472 return base::string16(); | 472 return base::string16(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace ash | 475 } // namespace ash |
| OLD | NEW |