Index: chrome/browser/managed_mode/managed_user_registration_service.cc |
=================================================================== |
--- chrome/browser/managed_mode/managed_user_registration_service.cc (revision 203598) |
+++ chrome/browser/managed_mode/managed_user_registration_service.cc (working copy) |
@@ -106,12 +106,6 @@ |
OnReceivedToken("abcdef"); // TODO(bauerb): This is a stub implementation. |
} |
-ProfileManager::CreateCallback |
-ManagedUserRegistrationService::GetRegistrationAndInitCallback() { |
- return base::Bind(&ManagedUserRegistrationService::OnProfileCreated, |
- weak_ptr_factory_.GetWeakPtr()); |
-} |
- |
void ManagedUserRegistrationService::Shutdown() { |
CancelPendingRegistration(); |
} |
@@ -308,18 +302,3 @@ |
pending_managed_user_id_.clear(); |
pending_managed_user_acknowledged_ = false; |
} |
- |
-void ManagedUserRegistrationService::OnProfileCreated( |
- Profile* profile, |
- Profile::CreateStatus status) { |
- // We're being called back twice: once after the profile has been created on |
- // disk, and once after all the profile services (including the |
- // ManagedUserService) have been initialized. Ignore the first one. |
- if (status != Profile::CREATE_STATUS_INITIALIZED) |
- return; |
- |
- ManagedUserService* managed_user_service = |
- ManagedUserServiceFactory::GetForProfile(profile); |
- DCHECK(managed_user_service->ProfileIsManaged()); |
- managed_user_service->RegisterAndInitSync(this); |
-} |