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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 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 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 "apps/app_restore_service_factory.h" 7 #include "apps/app_restore_service_factory.h"
8 #include "apps/shell_window_geometry_cache.h" 8 #include "apps/shell_window_geometry_cache.h"
9 #include "apps/shortcut_manager_factory.h" 9 #include "apps/shortcut_manager_factory.h"
10 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h" 10 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // each ServiceFactory initializes itself and registers its dependencies with 141 // each ServiceFactory initializes itself and registers its dependencies with
142 // the global PreferenceDependencyManager. We need to have a complete 142 // the global PreferenceDependencyManager. We need to have a complete
143 // dependency graph when we create a profile so we can dispatch the profile 143 // dependency graph when we create a profile so we can dispatch the profile
144 // creation message to the services that want to create their services at 144 // creation message to the services that want to create their services at
145 // profile creation time. 145 // profile creation time.
146 // 146 //
147 // TODO(erg): This needs to be something else. I don't think putting every 147 // TODO(erg): This needs to be something else. I don't think putting every
148 // FooServiceFactory here will scale or is desirable long term. 148 // FooServiceFactory here will scale or is desirable long term.
149 // 149 //
150 // static 150 // static
151 void 151 void ChromeBrowserMainExtraPartsProfiles::
152 ChromeBrowserMainExtraPartsProfiles::EnsureProfileKeyedServiceFactoriesBuilt() { 152 EnsureBrowserContextKeyedServiceFactoriesBuilt() {
153 AboutSigninInternalsFactory::GetInstance(); 153 AboutSigninInternalsFactory::GetInstance();
154 autofill::PersonalDataManagerFactory::GetInstance(); 154 autofill::PersonalDataManagerFactory::GetInstance();
155 #if defined(ENABLE_BACKGROUND) 155 #if defined(ENABLE_BACKGROUND)
156 BackgroundContentsServiceFactory::GetInstance(); 156 BackgroundContentsServiceFactory::GetInstance();
157 #endif 157 #endif
158 BookmarkModelFactory::GetInstance(); 158 BookmarkModelFactory::GetInstance();
159 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 159 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
160 captive_portal::CaptivePortalServiceFactory::GetInstance(); 160 captive_portal::CaptivePortalServiceFactory::GetInstance();
161 #endif 161 #endif
162 ChromeGeolocationPermissionContextFactory::GetInstance(); 162 ChromeGeolocationPermissionContextFactory::GetInstance();
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 #endif 283 #endif
284 TokenCacheServiceFactory::GetInstance(); 284 TokenCacheServiceFactory::GetInstance();
285 TokenServiceFactory::GetInstance(); 285 TokenServiceFactory::GetInstance();
286 #if !defined(OS_ANDROID) 286 #if !defined(OS_ANDROID)
287 UserStyleSheetWatcherFactory::GetInstance(); 287 UserStyleSheetWatcherFactory::GetInstance();
288 #endif 288 #endif
289 WebDataServiceFactory::GetInstance(); 289 WebDataServiceFactory::GetInstance();
290 } 290 }
291 291
292 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 292 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
293 EnsureProfileKeyedServiceFactoriesBuilt(); 293 EnsureBrowserContextKeyedServiceFactoriesBuilt();
294 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698