| 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/common/system/locale/locale_notification_controller.h" | 5 #include "ash/common/system/locale/locale_notification_controller.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/common/system/system_notifier.h" | 9 #include "ash/common/system/system_notifier.h" |
| 10 #include "ash/common/system/tray/wm_system_tray_notifier.h" | 10 #include "ash/common/system/tray/system_tray_notifier.h" |
| 11 #include "ash/common/wm_shell.h" | 11 #include "ash/common/wm_shell.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "grit/ash_resources.h" | 13 #include "grit/ash_resources.h" |
| 14 #include "grit/ash_strings.h" | 14 #include "grit/ash_strings.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/message_center/message_center.h" | 17 #include "ui/message_center/message_center.h" |
| 18 #include "ui/message_center/notification.h" | 18 #include "ui/message_center/notification.h" |
| 19 #include "ui/message_center/notification_delegate.h" | 19 #include "ui/message_center/notification_delegate.h" |
| 20 #include "ui/message_center/notification_types.h" | 20 #include "ui/message_center/notification_types.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 bundle.GetImageNamed(IDR_AURA_UBER_TRAY_LOCALE), | 108 bundle.GetImageNamed(IDR_AURA_UBER_TRAY_LOCALE), |
| 109 base::string16() /* display_source */, GURL(), | 109 base::string16() /* display_source */, GURL(), |
| 110 message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT, | 110 message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT, |
| 111 system_notifier::kNotifierLocale), | 111 system_notifier::kNotifierLocale), |
| 112 optional, new LocaleNotificationDelegate(delegate))); | 112 optional, new LocaleNotificationDelegate(delegate))); |
| 113 message_center::MessageCenter::Get()->AddNotification( | 113 message_center::MessageCenter::Get()->AddNotification( |
| 114 std::move(notification)); | 114 std::move(notification)); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace ash | 117 } // namespace ash |
| OLD | NEW |