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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.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: 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/ui/webui/options/browser_options_handler.h
===================================================================
--- chrome/browser/ui/webui/options/browser_options_handler.h (revision 203598)
+++ chrome/browser/ui/webui/options/browser_options_handler.h (working copy)
@@ -144,7 +144,7 @@
// Sends an array of Profile objects to javascript.
void SendProfilesInfo();
- // Asynchronously opens a new browser window to create a new profile.
+ // Asynchronously creates and initializes a new profile.
// The arguments are as follows:
// 0: name (string)
// 1: icon (string)
@@ -153,15 +153,29 @@
// 3: a flag stating whether the user should be managed (optional, boolean)
void CreateProfile(const base::ListValue* args);
- // Handles final tasks when a new profile has been created, running any queued
- // callbacks and updating the UI.
- void OnProfileCreated(
+ // After a new managed-user profile has been created, registers the user with
+ // the management server. This is a class method to ensure that the
+ // registration service (on the custodian's profile, along with this WebUI
+ // class) still exists after the new managed profile has been created
+ // asynchronously.
+ void RegisterNewManagedUser(const ProfileManager::CreateCallback& callback,
+ Profile* profile,
+ Profile::CreateStatus status);
+
+ // Updates the UI as the final task after a new profile has been created.
+ void ShowProfileCreationFeedback(
chrome::HostDesktopType desktop_type,
bool is_managed,
- const std::vector<ProfileManager::CreateCallback>& callbacks,
Profile* profile,
Profile::CreateStatus status);
+ // Deletes the given profile. Expects one argument:
+ // 0: profile file path (string)
+ void DeleteProfile(const base::ListValue* args);
+
+ // Deletes the profile at the given |file_path|.
+ void DeleteProfileAtPath(base::FilePath file_path);
+
void ObserveThemeChanged();
void ThemesReset(const base::ListValue* args);
#if defined(TOOLKIT_GTK)
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698