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..a31d023a7cbd56e5a1ed7b03621a6ab9df571a2e 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,16 @@ 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|, it can show a tutorial. If a tutorial is |
+// not shown, |profile_path_to_focus| could be used to specify which user |
+// pod should be focused. |callback| is ran once the custom url for the |
Alexei Svitkine (slow)
2014/03/18 15:50:33
What's a user pod?
noms (inactive)
2014/03/19 15:58:20
Done.
|
+// user manager has been decided. |
Alexei Svitkine (slow)
2014/03/18 15:50:33
Can you document what the second param of the call
noms (inactive)
2014/03/19 15:58:20
I thought it was already documented, but I've expa
Alexei Svitkine (slow)
2014/03/19 16:37:01
I meant the 2nd param of |callback|, not the 2nd p
noms (inactive)
2014/03/19 17:10:38
Done.
|
+void CreateGuestProfileForUserManager( |
+ const base::FilePath& profile_path_to_focus, |
+ profiles::UserManagerTutorialMode tutorial_mode, |
+ const base::Callback<void(Profile*, const std::string&)>& callback); |
+ |
} // namespace profiles |
#endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ |