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

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

Issue 10006037: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile Created 8 years, 8 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/profiles/profile.h ('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
(...skipping 20 matching lines...) Expand all
31 #include "chrome/browser/signin/token_service_factory.h" 31 #include "chrome/browser/signin/token_service_factory.h"
32 #include "chrome/browser/speech/speech_input_extension_manager.h" 32 #include "chrome/browser/speech/speech_input_extension_manager.h"
33 #include "chrome/browser/spellchecker/spellcheck_factory.h" 33 #include "chrome/browser/spellchecker/spellcheck_factory.h"
34 #include "chrome/browser/sync/profile_sync_service_factory.h" 34 #include "chrome/browser/sync/profile_sync_service_factory.h"
35 #include "chrome/browser/tabs/pinned_tab_service_factory.h" 35 #include "chrome/browser/tabs/pinned_tab_service_factory.h"
36 #include "chrome/browser/themes/theme_service_factory.h" 36 #include "chrome/browser/themes/theme_service_factory.h"
37 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" 37 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h"
38 #include "chrome/browser/ui/global_error_service_factory.h" 38 #include "chrome/browser/ui/global_error_service_factory.h"
39 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" 39 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
40 #include "chrome/browser/user_style_sheet_watcher_factory.h" 40 #include "chrome/browser/user_style_sheet_watcher_factory.h"
41
42 #if defined(USE_AURA) 41 #if defined(USE_AURA)
43 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" 42 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h"
44 #endif 43 #endif
45 44 #include "chrome/browser/webdata/web_data_service_factory.h"
46 #ifndef NDEBUG 45 #ifndef NDEBUG
47 #include "base/command_line.h" 46 #include "base/command_line.h"
48 #include "base/file_util.h" 47 #include "base/file_util.h"
49 #include "chrome/common/chrome_switches.h" 48 #include "chrome/common/chrome_switches.h"
50 #endif 49 #endif
51 50
52 class Profile; 51 class Profile;
53 52
54 void ProfileDependencyManager::AddComponent( 53 void ProfileDependencyManager::AddComponent(
55 ProfileKeyedBaseFactory* component) { 54 ProfileKeyedBaseFactory* component) {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 #if defined(ENABLE_THEMES) 209 #if defined(ENABLE_THEMES)
211 ThemeServiceFactory::GetInstance(); 210 ThemeServiceFactory::GetInstance();
212 #endif 211 #endif
213 UserStyleSheetWatcherFactory::GetInstance(); 212 UserStyleSheetWatcherFactory::GetInstance();
214 #if defined(ENABLE_WEB_INTENTS) 213 #if defined(ENABLE_WEB_INTENTS)
215 WebIntentsRegistryFactory::GetInstance(); 214 WebIntentsRegistryFactory::GetInstance();
216 #endif 215 #endif
217 #if defined(ENABLE_BACKGROUND) 216 #if defined(ENABLE_BACKGROUND)
218 BackgroundContentsServiceFactory::GetInstance(); 217 BackgroundContentsServiceFactory::GetInstance();
219 #endif // defined(ENABLE_BACKGROUND) 218 #endif // defined(ENABLE_BACKGROUND)
219 WebDataServiceFactory::GetInstance();
220 220
221 built_factories_ = true; 221 built_factories_ = true;
222 } 222 }
223 223
224 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { 224 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) {
225 #if !defined(NDEBUG) 225 #if !defined(NDEBUG)
226 // Whenever we try to build a destruction ordering, we should also dump a 226 // Whenever we try to build a destruction ordering, we should also dump a
227 // dependency graph to "/path/to/profile/profile-dependencies.dot". 227 // dependency graph to "/path/to/profile/profile-dependencies.dot".
228 if (CommandLine::ForCurrentProcess()->HasSwitch( 228 if (CommandLine::ForCurrentProcess()->HasSwitch(
229 switches::kDumpProfileDependencyGraph)) { 229 switches::kDumpProfileDependencyGraph)) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 } 324 }
325 325
326 result.append("\n /* Toplevel profile */\n"); 326 result.append("\n /* Toplevel profile */\n");
327 result.append(" Profile [shape=box];\n"); 327 result.append(" Profile [shape=box];\n");
328 328
329 result.append("}\n"); 329 result.append("}\n");
330 return result; 330 return result;
331 } 331 }
332 332
333 #endif 333 #endif
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698