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

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: msw 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/ui/views/profile_chooser_view.cc ('k') | chrome/browser/ui/views/user_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..00021f3b1dd8a7e3c64c728a09a122fc559ac175 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);
+ // Creates a new UserManagerView instance for the |guest_profile| and
+ // shows the |url|.
+ static void OnGuestProfileCreated(Profile* guest_profile,
+ const std::string& url);
// views::View:
virtual gfx::Size GetPreferredSize() OVERRIDE;
« no previous file with comments | « chrome/browser/ui/views/profile_chooser_view.cc ('k') | chrome/browser/ui/views/user_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698