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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/i18n/string_compare.h" | 11 #include "base/i18n/string_compare.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 "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "build/build_config.h" |
15 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
17 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
18 #include "chrome/browser/extensions/app_icon_loader_impl.h" | 19 #include "chrome/browser/extensions/app_icon_loader_impl.h" |
19 #include "chrome/browser/favicon/favicon_service_factory.h" | 20 #include "chrome/browser/favicon/favicon_service_factory.h" |
20 #include "chrome/browser/notifications/desktop_notification_profile_util.h" | 21 #include "chrome/browser/notifications/desktop_notification_profile_util.h" |
21 #include "chrome/browser/notifications/notifier_state_tracker.h" | 22 #include "chrome/browser/notifications/notifier_state_tracker.h" |
22 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" | 23 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" |
23 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/profiles/profile_info_cache.h" | 25 #include "chrome/browser/profiles/profile_info_cache.h" |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 weak_factory_.GetWeakPtr())); | 560 weak_factory_.GetWeakPtr())); |
560 } | 561 } |
561 #endif | 562 #endif |
562 | 563 |
563 if (notify) { | 564 if (notify) { |
564 FOR_EACH_OBSERVER(message_center::NotifierSettingsObserver, | 565 FOR_EACH_OBSERVER(message_center::NotifierSettingsObserver, |
565 observers_, | 566 observers_, |
566 NotifierGroupChanged()); | 567 NotifierGroupChanged()); |
567 } | 568 } |
568 } | 569 } |
OLD | NEW |