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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // TODO(erg): This needs to be something else. I don't think putting every | 177 // TODO(erg): This needs to be something else. I don't think putting every |
178 // FooServiceFactory here will scale or is desireable long term. | 178 // FooServiceFactory here will scale or is desireable long term. |
179 void ProfileDependencyManager::AssertFactoriesBuilt() { | 179 void ProfileDependencyManager::AssertFactoriesBuilt() { |
180 if (built_factories_) | 180 if (built_factories_) |
181 return; | 181 return; |
182 | 182 |
183 #if defined(ENABLE_BACKGROUND) | 183 #if defined(ENABLE_BACKGROUND) |
184 BackgroundContentsServiceFactory::GetInstance(); | 184 BackgroundContentsServiceFactory::GetInstance(); |
185 #endif | 185 #endif |
186 BookmarkModelFactory::GetInstance(); | 186 BookmarkModelFactory::GetInstance(); |
187 #if !defined(OS_ANDROID) | 187 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
188 captive_portal::CaptivePortalServiceFactory::GetInstance(); | 188 captive_portal::CaptivePortalServiceFactory::GetInstance(); |
189 #endif | 189 #endif |
190 ChromeURLDataManagerFactory::GetInstance(); | 190 ChromeURLDataManagerFactory::GetInstance(); |
191 #if defined(ENABLE_PRINTING) | 191 #if defined(ENABLE_PRINTING) |
192 CloudPrintProxyServiceFactory::GetInstance(); | 192 CloudPrintProxyServiceFactory::GetInstance(); |
193 #endif | 193 #endif |
194 CookieSettings::Factory::GetInstance(); | 194 CookieSettings::Factory::GetInstance(); |
195 #if defined(ENABLE_NOTIFICATIONS) | 195 #if defined(ENABLE_NOTIFICATIONS) |
196 DesktopNotificationServiceFactory::GetInstance(); | 196 DesktopNotificationServiceFactory::GetInstance(); |
197 #endif | 197 #endif |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 } | 346 } |
347 | 347 |
348 result.append("\n /* Toplevel profile */\n"); | 348 result.append("\n /* Toplevel profile */\n"); |
349 result.append(" Profile [shape=box];\n"); | 349 result.append(" Profile [shape=box];\n"); |
350 | 350 |
351 result.append("}\n"); | 351 result.append("}\n"); |
352 return result; | 352 return result; |
353 } | 353 } |
354 | 354 |
355 #endif | 355 #endif |
OLD | NEW |