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

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

Issue 9289007: Profiles: Move the Spelling system onto a ProfileKeyedServiceFactory. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove stray mark Created 8 years, 11 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" 11 #include "chrome/browser/autocomplete/network_action_predictor_factory.h"
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" 12 #include "chrome/browser/autofill/personal_data_manager_factory.h"
13 #include "chrome/browser/background/background_contents_service_factory.h" 13 #include "chrome/browser/background/background_contents_service_factory.h"
14 #include "chrome/browser/content_settings/cookie_settings.h" 14 #include "chrome/browser/content_settings/cookie_settings.h"
15 #include "chrome/browser/download/download_service_factory.h" 15 #include "chrome/browser/download/download_service_factory.h"
16 #include "chrome/browser/intents/web_intents_registry_factory.h" 16 #include "chrome/browser/intents/web_intents_registry_factory.h"
17 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 17 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
18 #include "chrome/browser/plugin_prefs_factory.h" 18 #include "chrome/browser/plugin_prefs_factory.h"
19 #include "chrome/browser/prerender/prerender_manager_factory.h" 19 #include "chrome/browser/prerender/prerender_manager_factory.h"
20 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 20 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/profiles/profile_keyed_service.h" 22 #include "chrome/browser/profiles/profile_keyed_service.h"
23 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 23 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
24 #include "chrome/browser/protector/protector_service_factory.h" 24 #include "chrome/browser/protector/protector_service_factory.h"
25 #include "chrome/browser/search_engines/template_url_service_factory.h" 25 #include "chrome/browser/search_engines/template_url_service_factory.h"
26 #include "chrome/browser/sessions/session_service_factory.h" 26 #include "chrome/browser/sessions/session_service_factory.h"
27 #include "chrome/browser/sessions/tab_restore_service_factory.h" 27 #include "chrome/browser/sessions/tab_restore_service_factory.h"
28 #include "chrome/browser/signin/signin_manager_factory.h" 28 #include "chrome/browser/signin/signin_manager_factory.h"
29 #include "chrome/browser/speech/speech_input_extension_manager.h" 29 #include "chrome/browser/speech/speech_input_extension_manager.h"
30 #include "chrome/browser/spellchecker/spellcheck_factory.h"
30 #include "chrome/browser/sync/profile_sync_service_factory.h" 31 #include "chrome/browser/sync/profile_sync_service_factory.h"
31 #include "chrome/browser/themes/theme_service_factory.h" 32 #include "chrome/browser/themes/theme_service_factory.h"
32 #include "chrome/browser/ui/global_error_service_factory.h" 33 #include "chrome/browser/ui/global_error_service_factory.h"
33 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" 34 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
34 35
35 #ifndef NDEBUG 36 #ifndef NDEBUG
36 #include "base/command_line.h" 37 #include "base/command_line.h"
37 #include "base/file_util.h" 38 #include "base/file_util.h"
38 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
39 #endif 40 #endif
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // PKSF. It's broken and is registering itself twice. 174 // PKSF. It's broken and is registering itself twice.
174 // 175 //
175 // PinnedTabServiceFactory::GetInstance(); 176 // PinnedTabServiceFactory::GetInstance();
176 PluginPrefsFactory::GetInstance(); 177 PluginPrefsFactory::GetInstance();
177 protector::ProtectorServiceFactory::GetInstance(); 178 protector::ProtectorServiceFactory::GetInstance();
178 prerender::PrerenderManagerFactory::GetInstance(); 179 prerender::PrerenderManagerFactory::GetInstance();
179 ProfileSyncServiceFactory::GetInstance(); 180 ProfileSyncServiceFactory::GetInstance();
180 SessionServiceFactory::GetInstance(); 181 SessionServiceFactory::GetInstance();
181 SigninManagerFactory::GetInstance(); 182 SigninManagerFactory::GetInstance();
182 SpeechInputExtensionManager::InitializeFactory(); 183 SpeechInputExtensionManager::InitializeFactory();
184 SpellCheckFactory::GetInstance();
183 TabRestoreServiceFactory::GetInstance(); 185 TabRestoreServiceFactory::GetInstance();
184 ThemeServiceFactory::GetInstance(); 186 ThemeServiceFactory::GetInstance();
185 TemplateURLServiceFactory::GetInstance(); 187 TemplateURLServiceFactory::GetInstance();
186 WebIntentsRegistryFactory::GetInstance(); 188 WebIntentsRegistryFactory::GetInstance();
187 189
188 built_factories_ = true; 190 built_factories_ = true;
189 } 191 }
190 192
191 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { 193 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) {
192 #if !defined(NDEBUG) 194 #if !defined(NDEBUG)
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 293 }
292 294
293 result.append("\n /* Toplevel profile */\n"); 295 result.append("\n /* Toplevel profile */\n");
294 result.append(" Profile [shape=box];\n"); 296 result.append(" Profile [shape=box];\n");
295 297
296 result.append("}\n"); 298 result.append("}\n");
297 return result; 299 return result;
298 } 300 }
299 301
300 #endif 302 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698