Index: chrome/browser/managed_mode/managed_user_service.cc |
diff --git a/chrome/browser/managed_mode/managed_user_service.cc b/chrome/browser/managed_mode/managed_user_service.cc |
index 96bb3a1d2f74659400d1839ad7e6933bf240e7f9..7015c3f6eb2c902edca6b690ee9abfbf55f6e7b5 100644 |
--- a/chrome/browser/managed_mode/managed_user_service.cc |
+++ b/chrome/browser/managed_mode/managed_user_service.cc |
@@ -293,11 +293,6 @@ void ManagedUserService::DidBlockNavigation( |
} |
} |
-void ManagedUserService::AddInitCallback( |
- const base::Closure& callback) { |
- init_callbacks_.push_back(callback); |
-} |
- |
std::string ManagedUserService::GetDebugPolicyProviderName() const { |
// Save the string space in official builds. |
#ifdef NDEBUG |
@@ -528,12 +523,6 @@ void ManagedUserService::GetManualExceptionsForHost(const std::string& host, |
} |
} |
-void ManagedUserService::InitForTesting() { |
- DCHECK(!profile_->IsManaged()); |
- profile_->GetPrefs()->SetString(prefs::kManagedUserId, "Test ID"); |
- Init(); |
-} |
- |
void ManagedUserService::InitSync(const std::string& refresh_token) { |
ProfileSyncService* service = |
ProfileSyncServiceFactory::GetForProfile(profile_); |
@@ -611,14 +600,6 @@ void ManagedUserService::Init() { |
UpdateSiteLists(); |
UpdateManualHosts(); |
UpdateManualURLs(); |
- |
- // Call the callbacks to notify that the ManagedUserService has been |
- // initialized. |
- for (std::vector<base::Closure>::iterator it = init_callbacks_.begin(); |
- it != init_callbacks_.end(); |
- ++it) { |
- it->Run(); |
- } |
} |
void ManagedUserService::RegisterAndInitSync( |