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

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

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months 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) 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 #include "chrome/browser/notifications/desktop_notification_service.h" 5 #include "chrome/browser/notifications/desktop_notification_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h" 24 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h"
25 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/ui/browser.h" 26 #include "chrome/browser/ui/browser.h"
27 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" 27 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
28 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" 28 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
29 #include "chrome/common/content_settings.h" 29 #include "chrome/common/content_settings.h"
30 #include "chrome/common/content_settings_pattern.h" 30 #include "chrome/common/content_settings_pattern.h"
31 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
32 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
33 #include "components/infobars/core/infobar.h" 33 #include "components/infobars/core/infobar.h"
34 #include "components/user_prefs/pref_registry_syncable.h" 34 #include "components/pref_registry/pref_registry_syncable.h"
35 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
36 #include "content/public/browser/notification_service.h" 36 #include "content/public/browser/notification_service.h"
37 #include "content/public/browser/render_frame_host.h" 37 #include "content/public/browser/render_frame_host.h"
38 #include "content/public/browser/render_process_host.h" 38 #include "content/public/browser/render_process_host.h"
39 #include "content/public/browser/render_view_host.h" 39 #include "content/public/browser/render_view_host.h"
40 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
41 #include "content/public/common/show_desktop_notification_params.h" 41 #include "content/public/common/show_desktop_notification_params.h"
42 #include "grit/browser_resources.h" 42 #include "grit/browser_resources.h"
43 #include "grit/chromium_strings.h" 43 #include "grit/chromium_strings.h"
44 #include "grit/generated_resources.h" 44 #include "grit/generated_resources.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 // Tell the IO thread that this extension's permission for notifications 750 // Tell the IO thread that this extension's permission for notifications
751 // has changed. 751 // has changed.
752 extensions::InfoMap* extension_info_map = 752 extensions::InfoMap* extension_info_map =
753 extensions::ExtensionSystem::Get(profile_)->info_map(); 753 extensions::ExtensionSystem::Get(profile_)->info_map();
754 BrowserThread::PostTask( 754 BrowserThread::PostTask(
755 BrowserThread::IO, FROM_HERE, 755 BrowserThread::IO, FROM_HERE,
756 base::Bind(&extensions::InfoMap::SetNotificationsDisabled, 756 base::Bind(&extensions::InfoMap::SetNotificationsDisabled,
757 extension_info_map, notifier_id.id, !enabled)); 757 extension_info_map, notifier_id.id, !enabled));
758 #endif 758 #endif
759 } 759 }
OLDNEW
« no previous file with comments | « chrome/browser/network_time/network_time_service.cc ('k') | chrome/browser/notifications/extension_welcome_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698