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

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

Issue 10185008: Taking over issue 10006037: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 #include "chrome/browser/speech/speech_input_extension_manager.h" 35 #include "chrome/browser/speech/speech_input_extension_manager.h"
36 #include "chrome/browser/spellchecker/spellcheck_factory.h" 36 #include "chrome/browser/spellchecker/spellcheck_factory.h"
37 #include "chrome/browser/sync/profile_sync_service_factory.h" 37 #include "chrome/browser/sync/profile_sync_service_factory.h"
38 #include "chrome/browser/tabs/pinned_tab_service_factory.h" 38 #include "chrome/browser/tabs/pinned_tab_service_factory.h"
39 #include "chrome/browser/themes/theme_service_factory.h" 39 #include "chrome/browser/themes/theme_service_factory.h"
40 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" 40 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h"
41 #include "chrome/browser/ui/global_error_service_factory.h" 41 #include "chrome/browser/ui/global_error_service_factory.h"
42 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" 42 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
43 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h" 43 #include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
44 #include "chrome/browser/user_style_sheet_watcher_factory.h" 44 #include "chrome/browser/user_style_sheet_watcher_factory.h"
45
46 #if defined(USE_AURA) 45 #if defined(USE_AURA)
47 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" 46 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h"
48 #endif 47 #endif
49 48 #include "chrome/browser/webdata/web_data_service_factory.h"
50 #ifndef NDEBUG 49 #ifndef NDEBUG
51 #include "base/command_line.h" 50 #include "base/command_line.h"
52 #include "base/file_util.h" 51 #include "base/file_util.h"
53 #include "chrome/common/chrome_switches.h" 52 #include "chrome/common/chrome_switches.h"
54 #endif 53 #endif
55 54
56 class Profile; 55 class Profile;
57 56
58 void ProfileDependencyManager::AddComponent( 57 void ProfileDependencyManager::AddComponent(
59 ProfileKeyedBaseFactory* component) { 58 ProfileKeyedBaseFactory* component) {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 TemplateURLFetcherFactory::GetInstance(); 219 TemplateURLFetcherFactory::GetInstance();
221 TemplateURLServiceFactory::GetInstance(); 220 TemplateURLServiceFactory::GetInstance();
222 #if defined(ENABLE_THEMES) 221 #if defined(ENABLE_THEMES)
223 ThemeServiceFactory::GetInstance(); 222 ThemeServiceFactory::GetInstance();
224 #endif 223 #endif
225 TokenServiceFactory::GetInstance(); 224 TokenServiceFactory::GetInstance();
226 UserStyleSheetWatcherFactory::GetInstance(); 225 UserStyleSheetWatcherFactory::GetInstance();
227 #if defined(ENABLE_WEB_INTENTS) 226 #if defined(ENABLE_WEB_INTENTS)
228 WebIntentsRegistryFactory::GetInstance(); 227 WebIntentsRegistryFactory::GetInstance();
229 #endif 228 #endif
229 WebDataServiceFactory::GetInstance();
230 230
231 built_factories_ = true; 231 built_factories_ = true;
232 } 232 }
233 233
234 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { 234 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) {
235 #if !defined(NDEBUG) 235 #if !defined(NDEBUG)
236 // Whenever we try to build a destruction ordering, we should also dump a 236 // Whenever we try to build a destruction ordering, we should also dump a
237 // dependency graph to "/path/to/profile/profile-dependencies.dot". 237 // dependency graph to "/path/to/profile/profile-dependencies.dot".
238 if (CommandLine::ForCurrentProcess()->HasSwitch( 238 if (CommandLine::ForCurrentProcess()->HasSwitch(
239 switches::kDumpProfileDependencyGraph)) { 239 switches::kDumpProfileDependencyGraph)) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 } 334 }
335 335
336 result.append("\n /* Toplevel profile */\n"); 336 result.append("\n /* Toplevel profile */\n");
337 result.append(" Profile [shape=box];\n"); 337 result.append(" Profile [shape=box];\n");
338 338
339 result.append("}\n"); 339 result.append("}\n");
340 return result; 340 return result;
341 } 341 }
342 342
343 #endif 343 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698