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

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

Issue 9610006: Refactoring, moving and renaming the NetworkActionPredictor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolved sync conflicts. Created 8 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
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/autocomplete/network_action_predictor_factory.h"
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" 11 #include "chrome/browser/autofill/personal_data_manager_factory.h"
13 #include "chrome/browser/background/background_contents_service_factory.h" 12 #include "chrome/browser/background/background_contents_service_factory.h"
14 #include "chrome/browser/content_settings/cookie_settings.h" 13 #include "chrome/browser/content_settings/cookie_settings.h"
15 #include "chrome/browser/download/download_service_factory.h" 14 #include "chrome/browser/download/download_service_factory.h"
16 #include "chrome/browser/intents/web_intents_registry_factory.h" 15 #include "chrome/browser/intents/web_intents_registry_factory.h"
17 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 16 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
18 #include "chrome/browser/password_manager/password_store_factory.h" 17 #include "chrome/browser/password_manager/password_store_factory.h"
19 #include "chrome/browser/plugin_prefs_factory.h" 18 #include "chrome/browser/plugin_prefs_factory.h"
19 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h"
20 #include "chrome/browser/prerender/prerender_manager_factory.h" 20 #include "chrome/browser/prerender/prerender_manager_factory.h"
21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 21 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
22 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/profiles/profile_keyed_service.h" 23 #include "chrome/browser/profiles/profile_keyed_service.h"
24 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 24 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
25 #include "chrome/browser/protector/protector_service_factory.h" 25 #include "chrome/browser/protector/protector_service_factory.h"
26 #include "chrome/browser/search_engines/template_url_fetcher_factory.h" 26 #include "chrome/browser/search_engines/template_url_fetcher_factory.h"
27 #include "chrome/browser/search_engines/template_url_service_factory.h" 27 #include "chrome/browser/search_engines/template_url_service_factory.h"
28 #include "chrome/browser/sessions/session_service_factory.h" 28 #include "chrome/browser/sessions/session_service_factory.h"
29 #include "chrome/browser/sessions/tab_restore_service_factory.h" 29 #include "chrome/browser/sessions/tab_restore_service_factory.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // dependency graph when we create a profile so we can dispatch the profile 165 // dependency graph when we create a profile so we can dispatch the profile
166 // creation message to the services that want to create their services at 166 // creation message to the services that want to create their services at
167 // profile creation time. 167 // profile creation time.
168 // 168 //
169 // TODO(erg): This needs to be something else. I don't think putting every 169 // TODO(erg): This needs to be something else. I don't think putting every
170 // FooServiceFactory here will scale or is desireable long term. 170 // FooServiceFactory here will scale or is desireable long term.
171 void ProfileDependencyManager::AssertFactoriesBuilt() { 171 void ProfileDependencyManager::AssertFactoriesBuilt() {
172 if (built_factories_) 172 if (built_factories_)
173 return; 173 return;
174 174
175 AutocompleteActionPredictorFactory::GetInstance();
175 ChromeURLDataManagerFactory::GetInstance(); 176 ChromeURLDataManagerFactory::GetInstance();
176 CookieSettings::Factory::GetInstance(); 177 CookieSettings::Factory::GetInstance();
177 DownloadServiceFactory::GetInstance(); 178 DownloadServiceFactory::GetInstance();
178 FindBarStateFactory::GetInstance(); 179 FindBarStateFactory::GetInstance();
179 #if defined(USE_AURA) 180 #if defined(USE_AURA)
180 GesturePrefsObserverFactoryAura::GetInstance(); 181 GesturePrefsObserverFactoryAura::GetInstance();
181 #endif 182 #endif
182 GlobalErrorServiceFactory::GetInstance(); 183 GlobalErrorServiceFactory::GetInstance();
183 NetworkActionPredictorFactory::GetInstance();
184 NTPResourceCacheFactory::GetInstance(); 184 NTPResourceCacheFactory::GetInstance();
185 PasswordStoreFactory::GetInstance(); 185 PasswordStoreFactory::GetInstance();
186 PersonalDataManagerFactory::GetInstance(); 186 PersonalDataManagerFactory::GetInstance();
187 PluginPrefsFactory::GetInstance(); 187 PluginPrefsFactory::GetInstance();
188 prerender::PrerenderManagerFactory::GetInstance(); 188 prerender::PrerenderManagerFactory::GetInstance();
189 ProfileSyncServiceFactory::GetInstance(); 189 ProfileSyncServiceFactory::GetInstance();
190 SigninManagerFactory::GetInstance(); 190 SigninManagerFactory::GetInstance();
191 SpellCheckFactory::GetInstance(); 191 SpellCheckFactory::GetInstance();
192 TabRestoreServiceFactory::GetInstance(); 192 TabRestoreServiceFactory::GetInstance();
193 TemplateURLFetcherFactory::GetInstance(); 193 TemplateURLFetcherFactory::GetInstance();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 326 }
327 327
328 result.append("\n /* Toplevel profile */\n"); 328 result.append("\n /* Toplevel profile */\n");
329 result.append(" Profile [shape=box];\n"); 329 result.append(" Profile [shape=box];\n");
330 330
331 result.append("}\n"); 331 result.append("}\n");
332 return result; 332 return result;
333 } 333 }
334 334
335 #endif 335 #endif
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_histograms.cc ('k') | chrome/browser/resources/network_action_predictor/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698