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

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

Issue 914963002: Listen for keyed service shutdown notifications in PrerenderMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: review Created 5 years, 10 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
« no previous file with comments | « chrome/browser/prerender/prerender_message_filter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chrome_browser_main_extra_parts_profiles.h" 5 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
6 6
7 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" 7 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
8 #include "chrome/browser/autofill/personal_data_manager_factory.h" 8 #include "chrome/browser/autofill/personal_data_manager_factory.h"
9 #include "chrome/browser/background/background_contents_service_factory.h" 9 #include "chrome/browser/background/background_contents_service_factory.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 23 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
24 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 24 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
25 #include "chrome/browser/password_manager/password_store_factory.h" 25 #include "chrome/browser/password_manager/password_store_factory.h"
26 #include "chrome/browser/plugins/plugin_prefs_factory.h" 26 #include "chrome/browser/plugins/plugin_prefs_factory.h"
27 #include "chrome/browser/policy/profile_policy_connector_factory.h" 27 #include "chrome/browser/policy/profile_policy_connector_factory.h"
28 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" 28 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h"
29 #include "chrome/browser/predictors/predictor_database_factory.h" 29 #include "chrome/browser/predictors/predictor_database_factory.h"
30 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 30 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
31 #include "chrome/browser/prerender/prerender_link_manager_factory.h" 31 #include "chrome/browser/prerender/prerender_link_manager_factory.h"
32 #include "chrome/browser/prerender/prerender_manager_factory.h" 32 #include "chrome/browser/prerender/prerender_manager_factory.h"
33 #include "chrome/browser/prerender/prerender_message_filter.h"
33 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 34 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
34 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" 35 #include "chrome/browser/profiles/gaia_info_update_service_factory.h"
35 #include "chrome/browser/search/instant_service_factory.h" 36 #include "chrome/browser/search/instant_service_factory.h"
36 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 37 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
37 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" 38 #include "chrome/browser/search_engines/template_url_fetcher_factory.h"
38 #include "chrome/browser/search_engines/template_url_service_factory.h" 39 #include "chrome/browser/search_engines/template_url_service_factory.h"
39 #include "chrome/browser/sessions/session_service_factory.h" 40 #include "chrome/browser/sessions/session_service_factory.h"
40 #include "chrome/browser/sessions/tab_restore_service_factory.h" 41 #include "chrome/browser/sessions/tab_restore_service_factory.h"
41 #include "chrome/browser/signin/about_signin_internals_factory.h" 42 #include "chrome/browser/signin/about_signin_internals_factory.h"
42 #include "chrome/browser/signin/account_tracker_service_factory.h" 43 #include "chrome/browser/signin/account_tracker_service_factory.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 policy::UserPolicySigninServiceFactory::GetInstance(); 255 policy::UserPolicySigninServiceFactory::GetInstance();
255 #endif 256 #endif
256 #endif 257 #endif
257 policy::PolicyHeaderServiceFactory::GetInstance(); 258 policy::PolicyHeaderServiceFactory::GetInstance();
258 policy::SchemaRegistryServiceFactory::GetInstance(); 259 policy::SchemaRegistryServiceFactory::GetInstance();
259 policy::UserCloudPolicyInvalidatorFactory::GetInstance(); 260 policy::UserCloudPolicyInvalidatorFactory::GetInstance();
260 #endif 261 #endif
261 predictors::AutocompleteActionPredictorFactory::GetInstance(); 262 predictors::AutocompleteActionPredictorFactory::GetInstance();
262 predictors::PredictorDatabaseFactory::GetInstance(); 263 predictors::PredictorDatabaseFactory::GetInstance();
263 predictors::ResourcePrefetchPredictorFactory::GetInstance(); 264 predictors::ResourcePrefetchPredictorFactory::GetInstance();
265 prerender::PrerenderLinkManagerFactory::GetInstance();
264 prerender::PrerenderManagerFactory::GetInstance(); 266 prerender::PrerenderManagerFactory::GetInstance();
265 prerender::PrerenderLinkManagerFactory::GetInstance(); 267 prerender::PrerenderMessageFilter::EnsureShutdownNotifierFactoryBuilt();
266 ProfileSyncServiceFactory::GetInstance(); 268 ProfileSyncServiceFactory::GetInstance();
267 ProtocolHandlerRegistryFactory::GetInstance(); 269 ProtocolHandlerRegistryFactory::GetInstance();
268 #if defined(ENABLE_SESSION_SERVICE) 270 #if defined(ENABLE_SESSION_SERVICE)
269 SessionServiceFactory::GetInstance(); 271 SessionServiceFactory::GetInstance();
270 #endif 272 #endif
271 ShortcutsBackendFactory::GetInstance(); 273 ShortcutsBackendFactory::GetInstance();
272 SigninManagerFactory::GetInstance(); 274 SigninManagerFactory::GetInstance();
273 #if defined(ENABLE_SPELLCHECK) 275 #if defined(ENABLE_SPELLCHECK)
274 SpellcheckServiceFactory::GetInstance(); 276 SpellcheckServiceFactory::GetInstance();
275 #endif 277 #endif
276 suggestions::SuggestionsServiceFactory::GetInstance(); 278 suggestions::SuggestionsServiceFactory::GetInstance();
277 ThumbnailServiceFactory::GetInstance(); 279 ThumbnailServiceFactory::GetInstance();
278 TabRestoreServiceFactory::GetInstance(); 280 TabRestoreServiceFactory::GetInstance();
279 TemplateURLFetcherFactory::GetInstance(); 281 TemplateURLFetcherFactory::GetInstance();
280 TemplateURLServiceFactory::GetInstance(); 282 TemplateURLServiceFactory::GetInstance();
281 #if defined(ENABLE_THEMES) 283 #if defined(ENABLE_THEMES)
282 ThemeServiceFactory::GetInstance(); 284 ThemeServiceFactory::GetInstance();
283 #endif 285 #endif
284 WebDataServiceFactory::GetInstance(); 286 WebDataServiceFactory::GetInstance();
285 } 287 }
286 288
287 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 289 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
288 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 290 EnsureBrowserContextKeyedServiceFactoriesBuilt();
289 } 291 }
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698