Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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/extensions_service.h" 14 #include "chrome/browser/extensions/extensions_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"
21 #include "chrome/browser/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/renderer_host/render_process_host.h" 22 #include "chrome/browser/renderer_host/render_process_host.h"
23 #include "chrome/browser/renderer_host/render_view_host.h" 23 #include "chrome/browser/renderer_host/render_view_host.h"
24 #include "chrome/browser/renderer_host/site_instance.h" 24 #include "chrome/browser/renderer_host/site_instance.h"
25 #include "chrome/browser/tab_contents/infobar_delegate.h" 25 #include "chrome/browser/tab_contents/infobar_delegate.h"
26 #include "chrome/browser/tab_contents/tab_contents.h" 26 #include "chrome/browser/tab_contents/tab_contents.h"
27 #include "chrome/browser/worker_host/worker_process_host.h" 27 #include "chrome/browser/worker_host/worker_process_host.h"
28 #include "chrome/common/notification_service.h" 28 #include "chrome/common/notification_service.h"
29 #include "chrome/common/notification_type.h" 29 #include "chrome/common/notification_type.h"
30 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
31 #include "chrome/common/render_messages.h" 31 #include "chrome/common/render_messages.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } 624 }
625 return UTF8ToUTF16(origin.host()); 625 return UTF8ToUTF16(origin.host());
626 } 626 }
627 627
628 void DesktopNotificationService::NotifySettingsChange() { 628 void DesktopNotificationService::NotifySettingsChange() {
629 NotificationService::current()->Notify( 629 NotificationService::current()->Notify(
630 NotificationType::DESKTOP_NOTIFICATION_SETTINGS_CHANGED, 630 NotificationType::DESKTOP_NOTIFICATION_SETTINGS_CHANGED,
631 Source<DesktopNotificationService>(this), 631 Source<DesktopNotificationService>(this),
632 NotificationService::NoDetails()); 632 NotificationService::NoDetails());
633 } 633 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_host.cc ('k') | chrome/browser/notifications/notification_options_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698