Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2028)

Unified Diff: chrome/browser/profiles/profile_dependency_manager.cc

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Not sure why the patch is not applying - bot source out of sync with ToT? Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
Mattias Nissler (ping if slow) 2012/12/12 10:12:57 By convention, conditional includes go below the m
bartfab (slow) 2012/12/13 16:22:48 Done.
#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;
}

Powered by Google App Engine
This is Rietveld 408576698