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

Side by Side Diff: chrome/browser/profiles/profile_window.h

Issue 847733005: Move User Manager onto a System profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/profiles/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #include "chrome/browser/profiles/profile_metrics.h" 10 #include "chrome/browser/profiles/profile_metrics.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Closes all browser windows that belong to the guest profile. 78 // Closes all browser windows that belong to the guest profile.
79 void CloseGuestProfileWindows(); 79 void CloseGuestProfileWindows();
80 80
81 // Closes all the browser windows for |profile| and opens the user manager. 81 // Closes all the browser windows for |profile| and opens the user manager.
82 void LockProfile(Profile* profile); 82 void LockProfile(Profile* profile);
83 83
84 // Returns whether lock is available to this profile. 84 // Returns whether lock is available to this profile.
85 bool IsLockAvailable(Profile* profile); 85 bool IsLockAvailable(Profile* profile);
86 86
87 // Creates or reuses the guest profile needed by the user manager. Based on 87 // Creates or reuses the system profile needed by the user manager. Based on
88 // the value of |tutorial_mode|, the user manager can show a specific 88 // the value of |tutorial_mode|, the user manager can show a specific
89 // tutorial, or no tutorial at all. If a tutorial is not shown, then 89 // tutorial, or no tutorial at all. If a tutorial is not shown, then
90 // |profile_path_to_focus| could be used to specify which user should be 90 // |profile_path_to_focus| could be used to specify which user should be
91 // focused. After a profile is opened from the user manager, perform 91 // focused. After a profile is opened from the user manager, perform
92 // |profile_open_action|. |callback| is run with the custom url to be displayed, 92 // |profile_open_action|. |callback| is run with the custom url to be displayed,
93 // as well as a pointer to the guest profile. 93 // as well as a pointer to the guest profile.
94 void CreateGuestProfileForUserManager( 94 void CreateSystemProfileForUserManager(
95 const base::FilePath& profile_path_to_focus, 95 const base::FilePath& profile_path_to_focus,
96 profiles::UserManagerTutorialMode tutorial_mode, 96 profiles::UserManagerTutorialMode tutorial_mode,
97 profiles::UserManagerProfileSelected profile_open_action, 97 profiles::UserManagerProfileSelected profile_open_action,
98 const base::Callback<void(Profile*, const std::string&)>& callback); 98 const base::Callback<void(Profile*, const std::string&)>& callback);
99 99
100 // Based on the |profile| preferences, determines whether a user manager 100 // Based on the |profile| preferences, determines whether a user manager
101 // tutorial needs to be shown, and displays the user manager with or without 101 // tutorial needs to be shown, and displays the user manager with or without
102 // the tutorial. 102 // the tutorial.
103 void ShowUserManagerMaybeWithTutorial(Profile* profile); 103 void ShowUserManagerMaybeWithTutorial(Profile* profile);
104 104
105 // Enables new profile management preview and shows the user manager tutorial. 105 // Enables new profile management preview and shows the user manager tutorial.
106 void EnableNewProfileManagementPreview(Profile* profile); 106 void EnableNewProfileManagementPreview(Profile* profile);
107 107
108 // Disables new profile management preview and attempts to relaunch Chrome. 108 // Disables new profile management preview and attempts to relaunch Chrome.
109 void DisableNewProfileManagementPreview(Profile* profile); 109 void DisableNewProfileManagementPreview(Profile* profile);
110 110
111 // Converts from modes in the avatar menu to modes understood by 111 // Converts from modes in the avatar menu to modes understood by
112 // ProfileChooserView. 112 // ProfileChooserView.
113 void BubbleViewModeFromAvatarBubbleMode( 113 void BubbleViewModeFromAvatarBubbleMode(
114 BrowserWindow::AvatarBubbleMode mode, 114 BrowserWindow::AvatarBubbleMode mode,
115 BubbleViewMode* bubble_view_mode, 115 BubbleViewMode* bubble_view_mode,
116 TutorialMode* tutorial_mode); 116 TutorialMode* tutorial_mode);
117 117
118 } // namespace profiles 118 } // namespace profiles
119 119
120 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 120 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/profiles/profile_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698