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

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

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: One more switch statement Created 7 years, 7 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.h
===================================================================
--- chrome/browser/managed_mode/managed_user_registration_service.h (revision 203598)
+++ chrome/browser/managed_mode/managed_user_registration_service.h (working copy)
@@ -51,9 +51,11 @@
// profile has been created:
// ProfileManager::CreateMultiProfileAsync(
// name, icon,
- // managed_user_registration_service->GetRegistrationAndInitCallback(),
+ // managed_user_registration_service->GetRegistrationAndInitCallback(
+ // callback),
// managed_user);
- ProfileManager::CreateCallback GetRegistrationAndInitCallback();
+ ProfileManager::CreateCallback GetRegistrationAndInitCallback(
+ const ProfileManager::CreateCallback& callback);
// ProfileKeyedService implementation:
virtual void Shutdown() OVERRIDE;
@@ -89,7 +91,9 @@
// given |error|.
void DispatchCallback(const GoogleServiceAuthError& error);
- void OnProfileCreated(Profile* profile, Profile::CreateStatus status);
+ void OnProfileCreated(const ProfileManager::CreateCallback& callback,
+ Profile* profile,
+ Profile::CreateStatus status);
base::WeakPtrFactory<ManagedUserRegistrationService> weak_ptr_factory_;
PrefService* prefs_;

Powered by Google App Engine
This is Rietveld 408576698