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

Side by Side Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_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 // The ChromeNotifierService works together with sync to maintain the state of 5 // The ChromeNotifierService works together with sync to maintain the state of
6 // user notifications, which can then be presented in the notification center, 6 // user notifications, which can then be presented in the notification center,
7 // via the Notification UI Manager. 7 // via the Notification UI Manager.
8 8
9 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" 9 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h"
10 10
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/notifications/notification.h" 23 #include "chrome/browser/notifications/notification.h"
24 #include "chrome/browser/notifications/notification_ui_manager.h" 24 #include "chrome/browser/notifications/notification_ui_manager.h"
25 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h" 25 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h"
26 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h" 26 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service_fac tory.h"
27 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o.h" 27 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o.h"
28 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service.h" 28 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service.h"
29 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service_factory.h" 29 #include "chrome/browser/notifications/sync_notifier/synced_notification_app_inf o_service_factory.h"
30 #include "chrome/browser/notifications/sync_notifier/welcome_delegate.h" 30 #include "chrome/browser/notifications/sync_notifier/welcome_delegate.h"
31 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
33 #include "components/user_prefs/pref_registry_syncable.h" 33 #include "components/pref_registry/pref_registry_syncable.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/user_metrics.h" 35 #include "content/public/browser/user_metrics.h"
36 #include "grit/generated_resources.h" 36 #include "grit/generated_resources.h"
37 #include "grit/theme_resources.h" 37 #include "grit/theme_resources.h"
38 #include "sync/api/sync_change.h" 38 #include "sync/api/sync_change.h"
39 #include "sync/api/sync_change_processor.h" 39 #include "sync/api/sync_change_processor.h"
40 #include "sync/api/sync_error_factory.h" 40 #include "sync/api/sync_error_factory.h"
41 #include "sync/protocol/sync.pb.h" 41 #include "sync/protocol/sync.pb.h"
42 #include "sync/protocol/synced_notification_specifics.pb.h" 42 #include "sync/protocol/synced_notification_specifics.pb.h"
43 #include "third_party/WebKit/public/web/WebTextDirection.h" 43 #include "third_party/WebKit/public/web/WebTextDirection.h"
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 app_info->icon(), 840 app_info->icon(),
841 blink::WebTextDirectionDefault, 841 blink::WebTextDirectionDefault,
842 notifier_id, 842 notifier_id,
843 l10n_util::GetStringUTF16(IDS_NOTIFICATION_WELCOME_DISPLAY_SOURCE), 843 l10n_util::GetStringUTF16(IDS_NOTIFICATION_WELCOME_DISPLAY_SOURCE),
844 base::UTF8ToUTF16(welcome_notification_id), 844 base::UTF8ToUTF16(welcome_notification_id),
845 rich_notification_data, 845 rich_notification_data,
846 delegate.get()); 846 delegate.get());
847 } 847 }
848 848
849 } // namespace notifier 849 } // namespace notifier
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698