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