OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/desktop_notification_service.h" | 5 #include "chrome/browser/notifications/desktop_notification_service.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_child_process_host.h" | 12 #include "chrome/browser/browser_child_process_host.h" |
13 #include "chrome/browser/browser_thread.h" | 13 #include "chrome/browser/browser_thread.h" |
14 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
15 #include "chrome/browser/notifications/notification.h" | 15 #include "chrome/browser/notifications/notification.h" |
16 #include "chrome/browser/notifications/notification_object_proxy.h" | 16 #include "chrome/browser/notifications/notification_object_proxy.h" |
17 #include "chrome/browser/notifications/notification_ui_manager.h" | 17 #include "chrome/browser/notifications/notification_ui_manager.h" |
18 #include "chrome/browser/notifications/notifications_prefs_cache.h" | 18 #include "chrome/browser/notifications/notifications_prefs_cache.h" |
19 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
20 #include "chrome/browser/prefs/scoped_pref_update.h" | 20 #include "chrome/browser/prefs/scoped_pref_update.h" |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 } | 630 } |
631 return UTF8ToUTF16(origin.host()); | 631 return UTF8ToUTF16(origin.host()); |
632 } | 632 } |
633 | 633 |
634 void DesktopNotificationService::NotifySettingsChange() { | 634 void DesktopNotificationService::NotifySettingsChange() { |
635 NotificationService::current()->Notify( | 635 NotificationService::current()->Notify( |
636 NotificationType::DESKTOP_NOTIFICATION_SETTINGS_CHANGED, | 636 NotificationType::DESKTOP_NOTIFICATION_SETTINGS_CHANGED, |
637 Source<DesktopNotificationService>(this), | 637 Source<DesktopNotificationService>(this), |
638 NotificationService::NoDetails()); | 638 NotificationService::NoDetails()); |
639 } | 639 } |
OLD | NEW |