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

Unified Diff: chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.cc

Issue 1015013003: SupervisedUserSyncService cleanup: Implement SigninManagerBase::Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 5 years, 9 months 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
« no previous file with comments | « chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.cc
diff --git a/chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.cc b/chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.cc
index 973722c4674bf4c4c1211788d47b84358240af39..22d025cf69023e31406cc4cbd9e7757e934d76f7 100644
--- a/chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.cc
+++ b/chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_factory.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -25,6 +26,7 @@ SupervisedUserSyncServiceFactory::SupervisedUserSyncServiceFactory()
: BrowserContextKeyedServiceFactory(
"SupervisedUserSyncService",
BrowserContextDependencyManager::GetInstance()) {
+ DependsOn(SigninManagerFactory::GetInstance());
}
SupervisedUserSyncServiceFactory::~SupervisedUserSyncServiceFactory() {}
@@ -32,5 +34,5 @@ SupervisedUserSyncServiceFactory::~SupervisedUserSyncServiceFactory() {}
KeyedService* SupervisedUserSyncServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new SupervisedUserSyncService(
- static_cast<Profile*>(profile)->GetPrefs());
+ static_cast<Profile*>(profile));
}
« no previous file with comments | « chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698