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

Unified Diff: chrome/browser/ui/cocoa/user_manager_mac.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/cocoa/user_manager_mac.h
diff --git a/chrome/browser/ui/cocoa/user_manager_mac.h b/chrome/browser/ui/cocoa/user_manager_mac.h
index 0ce144e8bc21a76ddeef68e64a41269db25d152d..5e411df28431c28385949bf335838ce76844f899 100644
--- a/chrome/browser/ui/cocoa/user_manager_mac.h
+++ b/chrome/browser/ui/cocoa/user_manager_mac.h
@@ -10,6 +10,7 @@
#include "base/mac/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/profiles/profile_window.h"
class UserManagerMac;
@class UserManagerWindowController;
@@ -23,8 +24,11 @@ class WebContents;
class UserManagerMac {
public:
// Shows the User Manager or re-activates an existing one, focusing the
- // profile given by |profile_path_to_focus|.
- static void Show(const base::FilePath& profile_path_to_focus);
+ // 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();
@@ -41,11 +45,9 @@ class UserManagerMac {
virtual ~UserManagerMac();
// If the |guest_profile| has been initialized succesfully (according to
- // |status|), creates a new UserManagerMac 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);
+ // |status|), creates a new UserManagerMac instance and shows the |url|.
+ static void OnGuestProfileCreated(Profile* guest_profile,
+ const std::string& url);
// An open User Manager window. There can only be one open at a time. This
// is reset to NULL when the window is closed.

Powered by Google App Engine
This is Rietveld 408576698