| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // The ChromeNotifierService works together with sync to maintain the state of | 5 // The ChromeNotifierService works together with sync to maintain the state of |
| 6 // user notifications, which can then be presented in the notification center, | 6 // user notifications, which can then be presented in the notification center, |
| 7 // via the Notification UI Manager. | 7 // via the Notification UI Manager. |
| 8 | 8 |
| 9 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | 9 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/notifications/notification.h" | 23 #include "chrome/browser/notifications/notification.h" |
| 24 #include "chrome/browser/notifications/notification_ui_manager.h" | 24 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 25 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h" | 25 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h" |
| 26 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac
tory.h" | 26 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac
tory.h" |
| 27 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o.h" | 27 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o.h" |
| 28 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o_service.h" | 28 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o_service.h" |
| 29 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o_service_factory.h" | 29 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf
o_service_factory.h" |
| 30 #include "chrome/browser/notifications/sync_notifier/welcome_delegate.h" | 30 #include "chrome/browser/notifications/sync_notifier/welcome_delegate.h" |
| 31 #include "chrome/browser/profiles/profile.h" | 31 #include "chrome/browser/profiles/profile.h" |
| 32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 33 #include "components/user_prefs/pref_registry_syncable.h" | 33 #include "components/pref_registry/pref_registry_syncable.h" |
| 34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
| 35 #include "content/public/browser/user_metrics.h" | 35 #include "content/public/browser/user_metrics.h" |
| 36 #include "grit/generated_resources.h" | 36 #include "grit/generated_resources.h" |
| 37 #include "grit/theme_resources.h" | 37 #include "grit/theme_resources.h" |
| 38 #include "sync/api/sync_change.h" | 38 #include "sync/api/sync_change.h" |
| 39 #include "sync/api/sync_change_processor.h" | 39 #include "sync/api/sync_change_processor.h" |
| 40 #include "sync/api/sync_error_factory.h" | 40 #include "sync/api/sync_error_factory.h" |
| 41 #include "sync/protocol/sync.pb.h" | 41 #include "sync/protocol/sync.pb.h" |
| 42 #include "sync/protocol/synced_notification_specifics.pb.h" | 42 #include "sync/protocol/synced_notification_specifics.pb.h" |
| 43 #include "third_party/WebKit/public/web/WebTextDirection.h" | 43 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 app_info->icon(), | 840 app_info->icon(), |
| 841 blink::WebTextDirectionDefault, | 841 blink::WebTextDirectionDefault, |
| 842 notifier_id, | 842 notifier_id, |
| 843 l10n_util::GetStringUTF16(IDS_NOTIFICATION_WELCOME_DISPLAY_SOURCE), | 843 l10n_util::GetStringUTF16(IDS_NOTIFICATION_WELCOME_DISPLAY_SOURCE), |
| 844 base::UTF8ToUTF16(welcome_notification_id), | 844 base::UTF8ToUTF16(welcome_notification_id), |
| 845 rich_notification_data, | 845 rich_notification_data, |
| 846 delegate.get()); | 846 delegate.get()); |
| 847 } | 847 } |
| 848 | 848 |
| 849 } // namespace notifier | 849 } // namespace notifier |
| OLD | NEW |