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

Unified Diff: chrome/browser/ui/views/user_manager_view.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: much refactor. such change. 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
Index: chrome/browser/ui/views/user_manager_view.h
diff --git a/chrome/browser/ui/views/user_manager_view.h b/chrome/browser/ui/views/user_manager_view.h
index 22b4ce7ed538e4ded3826f8b403bc52d4abeb9de..0a1c98be915683e1df77eeeac939861c3529578d 100644
--- a/chrome/browser/ui/views/user_manager_view.h
+++ b/chrome/browser/ui/views/user_manager_view.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_VIEWS_USER_MANAGER_VIEW_H_
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/profiles/profile_window.h"
#include "ui/views/window/dialog_delegate.h"
class AutoKeepAlive;
@@ -17,8 +18,12 @@ class WebView;
// Dialog widget that contains the Desktop User Manager webui.
class UserManagerView : public views::DialogDelegateView {
public:
- // Shows the User Manager or re-activates an existing one.
- static void Show(const base::FilePath& profile_path_to_focus);
+ // Shows the User Manager or re-activates an existing one, focusing the
+ // profile given by |profile_path_to_focus|. Based on the value of
+ // |tutorial_mode|, a tutorial could be shown, in which case
+ // |profile_path_to_focus| is ignored.
+ static void Show(const base::FilePath& profile_path_to_focus,
+ profiles::UserManagerTutorialMode tutorial_mode);
// Hide the User Manager.
static void Hide();
@@ -30,12 +35,10 @@ class UserManagerView : public views::DialogDelegateView {
explicit UserManagerView(Profile* profile);
virtual ~UserManagerView();
- // If the |guest_profile| has been initialized succesfully (according to
- // |status|), creates a new UserManagerView instance with the user with path
- // |profile_path_to_focus| focused.
- static void OnGuestProfileCreated(const base::FilePath& profile_path_to_focus,
- Profile* guest_profile,
- Profile::CreateStatus status);
+// If the |guest_profile| has been initialized succesfully (according to
+// |status|), creates a new UserManagerView instance and shows the |url|.
Alexei Svitkine (slow) 2014/03/18 15:50:33 Nit: Bad indentation of comment?
noms (inactive) 2014/03/19 15:58:20 Done.
+ static void OnGuestProfileCreated(Profile* guest_profile,
+ const std::string& url);
// views::View:
virtual gfx::Size GetPreferredSize() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698