| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_error_observer_chromeos.h" | 5 #include "ash/display/display_error_observer_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/system/system_notifier.h" | 7 #include "ash/system/system_notifier.h" |
| 8 #include "grit/ash_resources.h" | 8 #include "grit/ash_resources.h" |
| 9 #include "grit/ash_strings.h" | 9 #include "grit/ash_strings.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 #include "ui/message_center/message_center.h" | 12 #include "ui/message_center/message_center.h" |
| 13 #include "ui/message_center/notification.h" | 13 #include "ui/message_center/notification.h" |
| 14 #include "ui/message_center/notification_delegate.h" | 14 #include "ui/message_center/notification_delegate.h" |
| 15 #include "ui/message_center/notification_list.h" | 15 #include "ui/message_center/notification_list.h" |
| 16 | 16 |
| 17 using message_center::Notification; | 17 using message_center::Notification; |
| 18 | 18 |
| 19 namespace ash { | 19 namespace ash { |
| 20 namespace internal { | |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| 23 const char kDisplayErrorNotificationId[] = "chrome://settings/display/error"; | 22 const char kDisplayErrorNotificationId[] = "chrome://settings/display/error"; |
| 24 | 23 |
| 25 } // namespace | 24 } // namespace |
| 26 | 25 |
| 27 DisplayErrorObserver::DisplayErrorObserver() { | 26 DisplayErrorObserver::DisplayErrorObserver() { |
| 28 } | 27 } |
| 29 | 28 |
| 30 DisplayErrorObserver::~DisplayErrorObserver() { | 29 DisplayErrorObserver::~DisplayErrorObserver() { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 message_center::MessageCenter::Get()->GetVisibleNotifications(); | 62 message_center::MessageCenter::Get()->GetVisibleNotifications(); |
| 64 for (message_center::NotificationList::Notifications::const_iterator iter = | 63 for (message_center::NotificationList::Notifications::const_iterator iter = |
| 65 notifications.begin(); iter != notifications.end(); ++iter) { | 64 notifications.begin(); iter != notifications.end(); ++iter) { |
| 66 if ((*iter)->id() == kDisplayErrorNotificationId) | 65 if ((*iter)->id() == kDisplayErrorNotificationId) |
| 67 return (*iter)->title(); | 66 return (*iter)->title(); |
| 68 } | 67 } |
| 69 | 68 |
| 70 return base::string16(); | 69 return base::string16(); |
| 71 } | 70 } |
| 72 | 71 |
| 73 } // namespace internal | |
| 74 } // namespace ash | 72 } // namespace ash |
| OLD | NEW |