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

Unified Diff: chrome/browser/ui/views/profiles/user_manager_view.h

Issue 564453003: Access to Chrome via the System Tray should go through the User Manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase continued Created 6 years, 3 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/profiles/user_manager_view.h
diff --git a/chrome/browser/ui/views/profiles/user_manager_view.h b/chrome/browser/ui/views/profiles/user_manager_view.h
index e39af1bb2ceedcc6a1d481cb1451539e77f01720..e82fc3bc43df8f93d5b2293d6384592bf9680c61 100644
--- a/chrome/browser/ui/views/profiles/user_manager_view.h
+++ b/chrome/browser/ui/views/profiles/user_manager_view.h
@@ -19,24 +19,8 @@ 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, 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();
-
- // Returns whether or not the User Manager is showing.
- static bool IsShowing();
-
- private:
- friend struct base::DefaultDeleter<UserManagerView>;
-
+ // Do not call directly. To display the User Manager, use UserManager::Show().
UserManagerView();
- virtual ~UserManagerView();
// Creates a new UserManagerView instance for the |guest_profile| and
// shows the |url|.
@@ -45,6 +29,11 @@ class UserManagerView : public views::DialogDelegateView {
Profile* guest_profile,
const std::string& url);
+ private:
+ virtual ~UserManagerView();
+
+ friend struct base::DefaultDeleter<UserManagerView>;
+
// Creates dialog and initializes UI.
void Init(const base::FilePath& profile_path_to_focus,
Profile* guest_profile,
@@ -66,9 +55,6 @@ class UserManagerView : public views::DialogDelegateView {
views::WebView* web_view_;
scoped_ptr<AutoKeepAlive> keep_alive_;
- // An open User Manager window. There can only be one open at a time. This
- // is reset to NULL when the window is closed.
- static UserManagerView* instance_;
DISALLOW_COPY_AND_ASSIGN(UserManagerView);
};
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/profiles/user_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698