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..63bee84604158b08d7a65dbec7b959c9addb0e59 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. |
rpetterson
2014/03/19 17:59:01
Not yet implement -- maybe TODO(noms) would work b
noms (inactive)
2014/03/20 14:15:59
Done.
|
+}; |
+ |
// 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 with the custom url to be displayed, as well as |
rpetterson
2014/03/19 17:59:01
typo: |callback| is *run* with the . . .
noms (inactive)
2014/03/20 14:15:59
Done.
|
+// a pointer to the guest profile. |
+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_ |