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

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

Issue 10399087: Converting BookmarkModel and HistoryService to ProfileKeyedServices. This just performs the initial… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_dependency_manager.h" 5 #include "chrome/browser/profiles/profile_dependency_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <iterator> 9 #include <iterator>
10 10
11 #include "chrome/browser/autofill/personal_data_manager_factory.h" 11 #include "chrome/browser/autofill/personal_data_manager_factory.h"
12 #include "chrome/browser/background/background_contents_service_factory.h" 12 #include "chrome/browser/background/background_contents_service_factory.h"
13 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
13 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" 14 #include "chrome/browser/captive_portal/captive_portal_service_factory.h"
14 #include "chrome/browser/content_settings/cookie_settings.h" 15 #include "chrome/browser/content_settings/cookie_settings.h"
15 #include "chrome/browser/download/download_service_factory.h" 16 #include "chrome/browser/download/download_service_factory.h"
16 #include "chrome/browser/extensions/api/commands/command_service_factory.h" 17 #include "chrome/browser/extensions/api/commands/command_service_factory.h"
17 #include "chrome/browser/extensions/api/discovery/suggested_links_registry_facto ry.h" 18 #include "chrome/browser/extensions/api/discovery/suggested_links_registry_facto ry.h"
18 #include "chrome/browser/extensions/extension_system_factory.h" 19 #include "chrome/browser/extensions/extension_system_factory.h"
19 #include "chrome/browser/google/google_url_tracker_factory.h" 20 #include "chrome/browser/google/google_url_tracker_factory.h"
21 #include "chrome/browser/history/history_service_factory.h"
20 #include "chrome/browser/intents/web_intents_registry_factory.h" 22 #include "chrome/browser/intents/web_intents_registry_factory.h"
21 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 23 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
22 #include "chrome/browser/password_manager/password_store_factory.h" 24 #include "chrome/browser/password_manager/password_store_factory.h"
23 #include "chrome/browser/plugin_prefs_factory.h" 25 #include "chrome/browser/plugin_prefs_factory.h"
24 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" 26 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h"
25 #include "chrome/browser/predictors/predictor_database_factory.h" 27 #include "chrome/browser/predictors/predictor_database_factory.h"
26 #include "chrome/browser/prerender/prerender_manager_factory.h" 28 #include "chrome/browser/prerender/prerender_manager_factory.h"
27 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 29 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
28 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/browser/profiles/profile_keyed_service.h" 31 #include "chrome/browser/profiles/profile_keyed_service.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // 176 //
175 // TODO(erg): This needs to be something else. I don't think putting every 177 // TODO(erg): This needs to be something else. I don't think putting every
176 // FooServiceFactory here will scale or is desireable long term. 178 // FooServiceFactory here will scale or is desireable long term.
177 void ProfileDependencyManager::AssertFactoriesBuilt() { 179 void ProfileDependencyManager::AssertFactoriesBuilt() {
178 if (built_factories_) 180 if (built_factories_)
179 return; 181 return;
180 182
181 #if defined(ENABLE_BACKGROUND) 183 #if defined(ENABLE_BACKGROUND)
182 BackgroundContentsServiceFactory::GetInstance(); 184 BackgroundContentsServiceFactory::GetInstance();
183 #endif 185 #endif
186 BookmarkModelFactory::GetInstance();
184 #if !defined(OS_ANDROID) 187 #if !defined(OS_ANDROID)
185 captive_portal::CaptivePortalServiceFactory::GetInstance(); 188 captive_portal::CaptivePortalServiceFactory::GetInstance();
186 #endif 189 #endif
187 ChromeURLDataManagerFactory::GetInstance(); 190 ChromeURLDataManagerFactory::GetInstance();
188 #if !defined(OS_ANDROID) 191 #if !defined(OS_ANDROID)
189 CloudPrintProxyServiceFactory::GetInstance(); 192 CloudPrintProxyServiceFactory::GetInstance();
190 #endif 193 #endif
191 CookieSettings::Factory::GetInstance(); 194 CookieSettings::Factory::GetInstance();
192 #if defined(ENABLE_NOTIFICATIONS) 195 #if defined(ENABLE_NOTIFICATIONS)
193 DesktopNotificationServiceFactory::GetInstance(); 196 DesktopNotificationServiceFactory::GetInstance();
194 #endif 197 #endif
195 DownloadServiceFactory::GetInstance(); 198 DownloadServiceFactory::GetInstance();
196 extensions::CommandServiceFactory::GetInstance(); 199 extensions::CommandServiceFactory::GetInstance();
197 extensions::SuggestedLinksRegistryFactory::GetInstance(); 200 extensions::SuggestedLinksRegistryFactory::GetInstance();
198 ExtensionSystemFactory::GetInstance(); 201 ExtensionSystemFactory::GetInstance();
199 FindBarStateFactory::GetInstance(); 202 FindBarStateFactory::GetInstance();
200 #if defined(USE_AURA) 203 #if defined(USE_AURA)
201 GesturePrefsObserverFactoryAura::GetInstance(); 204 GesturePrefsObserverFactoryAura::GetInstance();
202 #endif 205 #endif
203 GlobalErrorServiceFactory::GetInstance(); 206 GlobalErrorServiceFactory::GetInstance();
204 GoogleURLTrackerFactory::GetInstance(); 207 GoogleURLTrackerFactory::GetInstance();
208 HistoryServiceFactory::GetInstance();
205 NTPResourceCacheFactory::GetInstance(); 209 NTPResourceCacheFactory::GetInstance();
206 PasswordStoreFactory::GetInstance(); 210 PasswordStoreFactory::GetInstance();
207 PersonalDataManagerFactory::GetInstance(); 211 PersonalDataManagerFactory::GetInstance();
208 #if !defined(OS_ANDROID) 212 #if !defined(OS_ANDROID)
209 PinnedTabServiceFactory::GetInstance(); 213 PinnedTabServiceFactory::GetInstance();
210 #endif 214 #endif
211 PluginPrefsFactory::GetInstance(); 215 PluginPrefsFactory::GetInstance();
212 predictors::AutocompleteActionPredictorFactory::GetInstance(); 216 predictors::AutocompleteActionPredictorFactory::GetInstance();
213 predictors::PredictorDatabaseFactory::GetInstance(); 217 predictors::PredictorDatabaseFactory::GetInstance();
214 prerender::PrerenderManagerFactory::GetInstance(); 218 prerender::PrerenderManagerFactory::GetInstance();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 346 }
343 347
344 result.append("\n /* Toplevel profile */\n"); 348 result.append("\n /* Toplevel profile */\n");
345 result.append(" Profile [shape=box];\n"); 349 result.append(" Profile [shape=box];\n");
346 350
347 result.append("}\n"); 351 result.append("}\n");
348 return result; 352 return result;
349 } 353 }
350 354
351 #endif 355 #endif
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698