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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 1425783002: Componentizing GcmProfileService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UT errors as per comments Created 5 years, 1 month 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
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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" 57 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
58 #include "chrome/browser/profiles/chrome_version_service.h" 58 #include "chrome/browser/profiles/chrome_version_service.h"
59 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" 59 #include "chrome/browser/profiles/gaia_info_update_service_factory.h"
60 #include "chrome/browser/profiles/profile_destroyer.h" 60 #include "chrome/browser/profiles/profile_destroyer.h"
61 #include "chrome/browser/profiles/profile_info_cache.h" 61 #include "chrome/browser/profiles/profile_info_cache.h"
62 #include "chrome/browser/profiles/profile_manager.h" 62 #include "chrome/browser/profiles/profile_manager.h"
63 #include "chrome/browser/profiles/profile_metrics.h" 63 #include "chrome/browser/profiles/profile_metrics.h"
64 #include "chrome/browser/push_messaging/push_messaging_service_factory.h" 64 #include "chrome/browser/push_messaging/push_messaging_service_factory.h"
65 #include "chrome/browser/push_messaging/push_messaging_service_impl.h" 65 #include "chrome/browser/push_messaging/push_messaging_service_impl.h"
66 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 66 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
67 #include "chrome/browser/services/gcm/gcm_profile_service.h"
68 #include "chrome/browser/sessions/session_service_factory.h" 67 #include "chrome/browser/sessions/session_service_factory.h"
69 #include "chrome/browser/signin/signin_manager_factory.h" 68 #include "chrome/browser/signin/signin_manager_factory.h"
70 #include "chrome/browser/signin/signin_ui_util.h" 69 #include "chrome/browser/signin/signin_ui_util.h"
71 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h" 70 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
72 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" 71 #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h"
73 #include "chrome/browser/ui/startup/startup_browser_creator.h" 72 #include "chrome/browser/ui/startup/startup_browser_creator.h"
74 #include "chrome/common/chrome_constants.h" 73 #include "chrome/common/chrome_constants.h"
75 #include "chrome/common/chrome_paths_internal.h" 74 #include "chrome/common/chrome_paths_internal.h"
76 #include "chrome/common/chrome_switches.h" 75 #include "chrome/common/chrome_switches.h"
77 #include "chrome/common/pref_names.h" 76 #include "chrome/common/pref_names.h"
78 #include "chrome/common/url_constants.h" 77 #include "chrome/common/url_constants.h"
79 #include "chrome/grit/chromium_strings.h" 78 #include "chrome/grit/chromium_strings.h"
80 #include "components/bookmarks/browser/bookmark_model.h" 79 #include "components/bookmarks/browser/bookmark_model.h"
81 #include "components/content_settings/core/browser/cookie_settings.h" 80 #include "components/content_settings/core/browser/cookie_settings.h"
82 #include "components/content_settings/core/browser/host_content_settings_map.h" 81 #include "components/content_settings/core/browser/host_content_settings_map.h"
83 #include "components/domain_reliability/monitor.h" 82 #include "components/domain_reliability/monitor.h"
84 #include "components/domain_reliability/service.h" 83 #include "components/domain_reliability/service.h"
84 #include "components/gcm_driver/gcm_profile_service.h"
85 #include "components/keyed_service/content/browser_context_dependency_manager.h" 85 #include "components/keyed_service/content/browser_context_dependency_manager.h"
86 #include "components/metrics/metrics_service.h" 86 #include "components/metrics/metrics_service.h"
87 #include "components/omnibox/browser/autocomplete_classifier.h" 87 #include "components/omnibox/browser/autocomplete_classifier.h"
88 #include "components/omnibox/browser/shortcuts_backend.h" 88 #include "components/omnibox/browser/shortcuts_backend.h"
89 #include "components/pref_registry/pref_registry_syncable.h" 89 #include "components/pref_registry/pref_registry_syncable.h"
90 #include "components/proxy_config/pref_proxy_config_tracker.h" 90 #include "components/proxy_config/pref_proxy_config_tracker.h"
91 #include "components/signin/core/browser/signin_manager.h" 91 #include "components/signin/core/browser/signin_manager.h"
92 #include "components/signin/core/common/signin_pref_names.h" 92 #include "components/signin/core/common/signin_pref_names.h"
93 #include "components/ssl_config/ssl_config_service_manager.h" 93 #include "components/ssl_config/ssl_config_service_manager.h"
94 #include "components/syncable_prefs/pref_service_syncable.h" 94 #include "components/syncable_prefs/pref_service_syncable.h"
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1285 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1286 domain_reliability::DomainReliabilityService* service = 1286 domain_reliability::DomainReliabilityService* service =
1287 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1287 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1288 GetForBrowserContext(this); 1288 GetForBrowserContext(this);
1289 if (!service) 1289 if (!service)
1290 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); 1290 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>();
1291 1291
1292 return service->CreateMonitor( 1292 return service->CreateMonitor(
1293 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1293 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
1294 } 1294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698