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

Unified Diff: chrome/browser/managed_mode/managed_user_registration_service.cc

Issue 15774008: Pass errors generated during limited-user registration up to the UI for display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressed Drew's comments Created 7 years, 6 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
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);
-}
« no previous file with comments | « chrome/browser/managed_mode/managed_user_registration_service.h ('k') | chrome/browser/managed_mode/managed_user_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698