OLD | NEW |
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 SessionServiceFactory::GetInstance(); | 184 SessionServiceFactory::GetInstance(); |
185 SigninManagerFactory::GetInstance(); | 185 SigninManagerFactory::GetInstance(); |
186 #if defined(ENABLE_INPUT_SPEECH) | 186 #if defined(ENABLE_INPUT_SPEECH) |
187 SpeechInputExtensionManager::InitializeFactory(); | 187 SpeechInputExtensionManager::InitializeFactory(); |
188 #endif | 188 #endif |
189 SpellCheckFactory::GetInstance(); | 189 SpellCheckFactory::GetInstance(); |
190 TabRestoreServiceFactory::GetInstance(); | 190 TabRestoreServiceFactory::GetInstance(); |
191 ThemeServiceFactory::GetInstance(); | 191 ThemeServiceFactory::GetInstance(); |
192 TemplateURLServiceFactory::GetInstance(); | 192 TemplateURLServiceFactory::GetInstance(); |
193 TokenServiceFactory::GetInstance(); | 193 TokenServiceFactory::GetInstance(); |
| 194 #if defined(ENABLE_WEB_INTENTS) |
194 WebIntentsRegistryFactory::GetInstance(); | 195 WebIntentsRegistryFactory::GetInstance(); |
| 196 #endif |
195 | 197 |
196 built_factories_ = true; | 198 built_factories_ = true; |
197 } | 199 } |
198 | 200 |
199 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { | 201 void ProfileDependencyManager::BuildDestructionOrder(Profile* profile) { |
200 #if !defined(NDEBUG) | 202 #if !defined(NDEBUG) |
201 // Whenever we try to build a destruction ordering, we should also dump a | 203 // Whenever we try to build a destruction ordering, we should also dump a |
202 // dependency graph to "/path/to/profile/profile-dependencies.dot". | 204 // dependency graph to "/path/to/profile/profile-dependencies.dot". |
203 if (CommandLine::ForCurrentProcess()->HasSwitch( | 205 if (CommandLine::ForCurrentProcess()->HasSwitch( |
204 switches::kDumpProfileDependencyGraph)) { | 206 switches::kDumpProfileDependencyGraph)) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 } | 301 } |
300 | 302 |
301 result.append("\n /* Toplevel profile */\n"); | 303 result.append("\n /* Toplevel profile */\n"); |
302 result.append(" Profile [shape=box];\n"); | 304 result.append(" Profile [shape=box];\n"); |
303 | 305 |
304 result.append("}\n"); | 306 result.append("}\n"); |
305 return result; | 307 return result; |
306 } | 308 } |
307 | 309 |
308 #endif | 310 #endif |
OLD | NEW |