| Index: chrome/browser/profiles/profile_window.h
|
| diff --git a/chrome/browser/profiles/profile_window.h b/chrome/browser/profiles/profile_window.h
|
| index 3c5510f8fed6f30566ff9e61169978b9b9270382..1ee5724887d9f59289d4e93ac64339dd95642525 100644
|
| --- a/chrome/browser/profiles/profile_window.h
|
| +++ b/chrome/browser/profiles/profile_window.h
|
| @@ -18,6 +18,13 @@ namespace profiles {
|
| // Callback to be used when switching to a new profile is completed.
|
| typedef base::Callback<void()> ProfileSwitchingDoneCallback;
|
|
|
| +// Different tutorials that can be displayed in the user manager.
|
| +enum UserManagerTutorialMode {
|
| + USER_MANAGER_NO_TUTORIAL, // Does not display a tutorial.
|
| + USER_MANAGER_TUTORIAL_OVERVIEW, // Basic overview of new features.
|
| + USER_MANAGER_TUTORIAL_LOCK // Not yet implemented.
|
| +};
|
| +
|
| // Activates a window for |profile| on the desktop specified by
|
| // |desktop_type|. If no such window yet exists, or if |always_create| is
|
| // true, this first creates a new window, then activates
|
| @@ -59,6 +66,22 @@ void CloseGuestProfileWindows();
|
| // Closes all the browser windows for |profile| and opens the user manager.
|
| void LockProfile(Profile* profile);
|
|
|
| +// Creates or reuses the guest profile needed by the user manager. Based on
|
| +// the value of |tutorial_mode|, the user manager can show a specific
|
| +// tutorial, or no tutorial at all. If a tutorial is not shown, then
|
| +// |profile_path_to_focus| could be used to specify which user should be
|
| +// focused. |callback| is ran once the custom url for the user manager
|
| +// has been decided.
|
| +void CreateGuestProfileForUserManager(
|
| + const base::FilePath& profile_path_to_focus,
|
| + profiles::UserManagerTutorialMode tutorial_mode,
|
| + const base::Callback<void(Profile*, const std::string&)>& callback);
|
| +
|
| +// Based on the |profile| preferences, determines whether a user manager
|
| +// tutorial needs to be shown, and displays the user manager with or without
|
| +// the tutorial.
|
| +void ShowUserManagerMaybeWithTutorial(Profile* profile);
|
| +
|
| } // namespace profiles
|
|
|
| #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
|
|
|