OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/notifications/message_center_settings_controller.h" | 5 #include "chrome/browser/notifications/message_center_settings_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/string_compare.h" | 10 #include "base/i18n/string_compare.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/task/cancelable_task_tracker.h" | 13 #include "base/task/cancelable_task_tracker.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
16 #include "chrome/browser/extensions/app_icon_loader_impl.h" | 16 #include "chrome/browser/extensions/app_icon_loader_impl.h" |
17 #include "chrome/browser/favicon/favicon_service.h" | 17 #include "chrome/browser/favicon/favicon_service.h" |
18 #include "chrome/browser/favicon/favicon_service_factory.h" | 18 #include "chrome/browser/favicon/favicon_service_factory.h" |
19 #include "chrome/browser/notifications/desktop_notification_profile_util.h" | 19 #include "chrome/browser/notifications/desktop_notification_profile_util.h" |
20 #include "chrome/browser/notifications/desktop_notification_service.h" | 20 #include "chrome/browser/notifications/desktop_notification_service.h" |
21 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 21 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
22 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | |
23 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac
tory.h" | |
24 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/profiles/profile_info_cache.h" | 23 #include "chrome/browser/profiles/profile_info_cache.h" |
26 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
27 #include "chrome/common/extensions/api/notifications.h" | 25 #include "chrome/common/extensions/api/notifications.h" |
28 #include "chrome/common/extensions/extension_constants.h" | 26 #include "chrome/common/extensions/extension_constants.h" |
29 #include "components/content_settings/core/browser/host_content_settings_map.h" | 27 #include "components/content_settings/core/browser/host_content_settings_map.h" |
30 #include "components/favicon_base/favicon_types.h" | 28 #include "components/favicon_base/favicon_types.h" |
31 #include "components/history/core/browser/history_types.h" | 29 #include "components/history/core/browser/history_types.h" |
32 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/notification_source.h" | 31 #include "content/public/browser/notification_source.h" |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 // another creating a primary profile, and causes an infinite loop. | 517 // another creating a primary profile, and causes an infinite loop. |
520 // Thus, it would be better to delay creating group for guest login. | 518 // Thus, it would be better to delay creating group for guest login. |
521 base::MessageLoopProxy::current()->PostTask( | 519 base::MessageLoopProxy::current()->PostTask( |
522 FROM_HERE, | 520 FROM_HERE, |
523 base::Bind( | 521 base::Bind( |
524 &MessageCenterSettingsController::CreateNotifierGroupForGuestLogin, | 522 &MessageCenterSettingsController::CreateNotifierGroupForGuestLogin, |
525 weak_factory_.GetWeakPtr())); | 523 weak_factory_.GetWeakPtr())); |
526 } | 524 } |
527 #endif | 525 #endif |
528 } | 526 } |
OLD | NEW |