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

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

Issue 239543012: The User Manager should be backed by a special profile, not the guest one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nico's comment + fix tests Created 6 years, 8 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 | Annotate | Revision Log
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_metrics.h" 9 #include "chrome/browser/profiles/profile_metrics.h"
10 #include "chrome/browser/ui/host_desktop.h" 10 #include "chrome/browser/ui/host_desktop.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, 59 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
60 ProfileSwitchingDoneCallback callback, 60 ProfileSwitchingDoneCallback callback,
61 ProfileMetrics::ProfileAdd metric); 61 ProfileMetrics::ProfileAdd metric);
62 62
63 // Closes all browser windows that belong to the guest profile. 63 // Closes all browser windows that belong to the guest profile.
64 void CloseGuestProfileWindows(); 64 void CloseGuestProfileWindows();
65 65
66 // Closes all the browser windows for |profile| and opens the user manager. 66 // Closes all the browser windows for |profile| and opens the user manager.
67 void LockProfile(Profile* profile); 67 void LockProfile(Profile* profile);
68 68
69 // Creates or reuses the guest profile needed by the user manager. Based on 69 // Creates or reuses the profile needed by the user manager. Based on
70 // the value of |tutorial_mode|, the user manager can show a specific 70 // the value of |tutorial_mode|, the user manager can show a specific
71 // tutorial, or no tutorial at all. If a tutorial is not shown, then 71 // tutorial, or no tutorial at all. If a tutorial is not shown, then
72 // |profile_path_to_focus| could be used to specify which user should be 72 // |profile_path_to_focus| could be used to specify which user should be
73 // focused. |callback| is run with the custom url to be displayed, as well as 73 // focused. |callback| is run with the custom url to be displayed, as well as
74 // a pointer to the guest profile. 74 // a pointer to the guest profile.
75 void CreateGuestProfileForUserManager( 75 void CreateUserManagerProfile(
76 const base::FilePath& profile_path_to_focus, 76 const base::FilePath& profile_path_to_focus,
77 profiles::UserManagerTutorialMode tutorial_mode, 77 profiles::UserManagerTutorialMode tutorial_mode,
78 const base::Callback<void(Profile*, const std::string&)>& callback); 78 const base::Callback<void(Profile*, const std::string&)>& callback);
79 79
80 // Based on the |profile| preferences, determines whether a user manager 80 // Based on the |profile| preferences, determines whether a user manager
81 // tutorial needs to be shown, and displays the user manager with or without 81 // tutorial needs to be shown, and displays the user manager with or without
82 // the tutorial. 82 // the tutorial.
83 void ShowUserManagerMaybeWithTutorial(Profile* profile); 83 void ShowUserManagerMaybeWithTutorial(Profile* profile);
84 84
85 } // namespace profiles 85 } // namespace profiles
86 86
87 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 87 #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