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

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

Issue 64313005: Fix crash when locking a profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix flaky test Created 7 years, 1 month 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/ui/host_desktop.h" 9 #include "chrome/browser/ui/host_desktop.h"
10 #include "chrome/browser/ui/startup/startup_types.h" 10 #include "chrome/browser/ui/startup/startup_types.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Creates a new profile from the next available profile directory, and 48 // Creates a new profile from the next available profile directory, and
49 // opens a new browser window for the profile once it is ready. When the browser 49 // opens a new browser window for the profile once it is ready. When the browser
50 // is opened, |callback| will be run if it isn't null. 50 // is opened, |callback| will be run if it isn't null.
51 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type, 51 void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
52 ProfileSwitchingDoneCallback callback); 52 ProfileSwitchingDoneCallback callback);
53 53
54 // Closes all browser windows that belong to the guest profile. 54 // Closes all browser windows that belong to the guest profile.
55 void CloseGuestProfileWindows(); 55 void CloseGuestProfileWindows();
56 56
57 // Closes all the browser windows for |profile| and opens the user manager.
58 void LockProfile(Profile* profile);
59
57 } // namespace profiles 60 } // namespace profiles
58 61
59 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 62 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_list_desktop_browsertest.cc ('k') | chrome/browser/profiles/profile_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698