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

Unified Diff: chrome/browser/profiles/profile_window.h

Issue 199533004: [Mac, Win] Show a user manager tutorial once per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: alexei nits Created 6 years, 9 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698