| Index: chrome/browser/profiles/profile_dependency_manager.cc
|
| diff --git a/chrome/browser/profiles/profile_dependency_manager.cc b/chrome/browser/profiles/profile_dependency_manager.cc
|
| index 31277674e7701b61b9671dca7eb9421e21307317..6a88b5c237ec108604bb43d14ccfe822f6b018e6 100644
|
| --- a/chrome/browser/profiles/profile_dependency_manager.cc
|
| +++ b/chrome/browser/profiles/profile_dependency_manager.cc
|
| @@ -11,6 +11,9 @@
|
| #include "chrome/browser/autofill/personal_data_manager_factory.h"
|
| #include "chrome/browser/background/background_contents_service_factory.h"
|
| #include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| +#if defined(OS_CHROMEOS)
|
| +#include "chrome/browser/chromeos/session_length_limiter_factory.h"
|
| +#endif
|
| #include "chrome/browser/content_settings/cookie_settings.h"
|
| #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
|
| #include "chrome/browser/download/download_service_factory.h"
|
| @@ -196,14 +199,14 @@ ProfileDependencyManager::ProfileDependencyManager()
|
| ProfileDependencyManager::~ProfileDependencyManager() {}
|
|
|
| // This method gets the instance of each ServiceFactory. We do this so that
|
| -// each ServiceFactory initializes iteslf and registers its dependencies with
|
| +// each ServiceFactory initializes itself and registers its dependencies with
|
| // the global PreferenceDependencyManager. We need to have a complete
|
| // dependency graph when we create a profile so we can dispatch the profile
|
| // creation message to the services that want to create their services at
|
| // profile creation time.
|
| //
|
| // TODO(erg): This needs to be something else. I don't think putting every
|
| -// FooServiceFactory here will scale or is desireable long term.
|
| +// FooServiceFactory here will scale or is desirable long term.
|
| void ProfileDependencyManager::AssertFactoriesBuilt() {
|
| if (built_factories_)
|
| return;
|
| @@ -294,6 +297,9 @@ void ProfileDependencyManager::AssertFactoriesBuilt() {
|
| #if defined(ENABLE_WEB_INTENTS)
|
| WebIntentsRegistryFactory::GetInstance();
|
| #endif
|
| +#if defined(OS_CHROMEOS)
|
| + chromeos::SessionLengthLimiterFactory::GetInstance();
|
| +#endif
|
|
|
| built_factories_ = true;
|
| }
|
|
|