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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // creation message to the services that want to create their services at | 157 // creation message to the services that want to create their services at |
158 // profile creation time. | 158 // profile creation time. |
159 // | 159 // |
160 // TODO(erg): This needs to be something else. I don't think putting every | 160 // TODO(erg): This needs to be something else. I don't think putting every |
161 // FooServiceFactory here will scale or is desireable long term. | 161 // FooServiceFactory here will scale or is desireable long term. |
162 void ProfileDependencyManager::AssertFactoriesBuilt() { | 162 void ProfileDependencyManager::AssertFactoriesBuilt() { |
163 if (built_factories_) | 163 if (built_factories_) |
164 return; | 164 return; |
165 | 165 |
166 BackgroundContentsServiceFactory::GetInstance(); | 166 BackgroundContentsServiceFactory::GetInstance(); |
| 167 #if !defined(OS_ANDROID) |
167 CloudPrintProxyServiceFactory::GetInstance(); | 168 CloudPrintProxyServiceFactory::GetInstance(); |
| 169 #endif |
168 CookieSettings::Factory::GetInstance(); | 170 CookieSettings::Factory::GetInstance(); |
169 DesktopNotificationServiceFactory::GetInstance(); | 171 DesktopNotificationServiceFactory::GetInstance(); |
170 DownloadServiceFactory::GetInstance(); | 172 DownloadServiceFactory::GetInstance(); |
171 FindBarStateFactory::GetInstance(); | 173 FindBarStateFactory::GetInstance(); |
172 GlobalErrorServiceFactory::GetInstance(); | 174 GlobalErrorServiceFactory::GetInstance(); |
173 NetworkActionPredictorFactory::GetInstance(); | 175 NetworkActionPredictorFactory::GetInstance(); |
174 NTPResourceCacheFactory::GetInstance(); | 176 NTPResourceCacheFactory::GetInstance(); |
175 PersonalDataManagerFactory::GetInstance(); | 177 PersonalDataManagerFactory::GetInstance(); |
176 PinnedTabServiceFactory::GetInstance(); | 178 PinnedTabServiceFactory::GetInstance(); |
177 PluginPrefsFactory::GetInstance(); | 179 PluginPrefsFactory::GetInstance(); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 } | 297 } |
296 | 298 |
297 result.append("\n /* Toplevel profile */\n"); | 299 result.append("\n /* Toplevel profile */\n"); |
298 result.append(" Profile [shape=box];\n"); | 300 result.append(" Profile [shape=box];\n"); |
299 | 301 |
300 result.append("}\n"); | 302 result.append("}\n"); |
301 return result; | 303 return result; |
302 } | 304 } |
303 | 305 |
304 #endif | 306 #endif |
OLD | NEW |