OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/chromeos/login/quick_unlock/quick_unlock_notification_c
ontroller.h" | 5 #include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_notification_c
ontroller.h" |
6 | 6 |
| 7 #include "ash/common/strings/grit/ash_strings.h" |
7 #include "ash/common/system/system_notifier.h" | 8 #include "ash/common/system/system_notifier.h" |
8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" | 11 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h" |
11 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" | 12 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h" |
12 #include "chrome/browser/notifications/notification.h" | 13 #include "chrome/browser/notifications/notification.h" |
13 #include "chrome/browser/notifications/notification_ui_manager.h" | 14 #include "chrome/browser/notifications/notification_ui_manager.h" |
14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/browser_navigator.h" | 16 #include "chrome/browser/ui/browser_navigator.h" |
16 #include "chrome/browser/ui/browser_navigator_params.h" | 17 #include "chrome/browser/ui/browser_navigator_params.h" |
17 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
18 #include "chrome/common/url_constants.h" | 19 #include "chrome/common/url_constants.h" |
19 #include "chrome/grit/theme_resources.h" | 20 #include "chrome/grit/theme_resources.h" |
20 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
21 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
22 #include "grit/ash_strings.h" | |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/strings/grit/ui_strings.h" | 25 #include "ui/strings/grit/ui_strings.h" |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 const char kDelegateId[] = "quickunlock_delegate"; | 29 const char kDelegateId[] = "quickunlock_delegate"; |
30 const char kNotificationId[] = "quickunlock_notification"; | 30 const char kNotificationId[] = "quickunlock_notification"; |
31 const char kChromeAuthenticationSettingsURL[] = | 31 const char kChromeAuthenticationSettingsURL[] = |
32 "chrome://md-settings/quickUnlock/authenticate"; | 32 "chrome://md-settings/quickUnlock/authenticate"; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ui::ResourceBundle::GetSharedInstance().GetImageNamed( | 148 ui::ResourceBundle::GetSharedInstance().GetImageNamed( |
149 IDR_SCREENSHOT_NOTIFICATION_ICON), | 149 IDR_SCREENSHOT_NOTIFICATION_ICON), |
150 message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT, | 150 message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT, |
151 ash::system_notifier::kNotifierQuickUnlock), | 151 ash::system_notifier::kNotifierQuickUnlock), |
152 l10n_util::GetStringUTF16( | 152 l10n_util::GetStringUTF16( |
153 IDS_MESSAGE_CENTER_NOTIFIER_QUICK_UNLOCK_FEATURE_NAME), | 153 IDS_MESSAGE_CENTER_NOTIFIER_QUICK_UNLOCK_FEATURE_NAME), |
154 GURL(), kNotificationId, message_center::RichNotificationData(), this); | 154 GURL(), kNotificationId, message_center::RichNotificationData(), this); |
155 } | 155 } |
156 | 156 |
157 } // namespace chromeos | 157 } // namespace chromeos |
OLD | NEW |