OLD | NEW |
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_PROFILES_STATE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "chrome/browser/profiles/avatar_menu.h" | 10 #include "chrome/browser/profiles/avatar_menu.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void SetFastUserSwitchingTutorialDismissedState(bool dismissed); | 96 void SetFastUserSwitchingTutorialDismissedState(bool dismissed); |
97 | 97 |
98 // Returns true if the right-click user switching tutorial was previously | 98 // Returns true if the right-click user switching tutorial was previously |
99 // dismissed by a user, false otherwise. | 99 // dismissed by a user, false otherwise. |
100 bool GetFastUserSwitchingTutorialDismissedState(); | 100 bool GetFastUserSwitchingTutorialDismissedState(); |
101 | 101 |
102 // Sets the last used profile pref to |profile_dir|, unless |profile_dir| is the | 102 // Sets the last used profile pref to |profile_dir|, unless |profile_dir| is the |
103 // System Profile directory, which is an invalid last used profile. | 103 // System Profile directory, which is an invalid last used profile. |
104 void SetLastUsedProfile(const std::string& profile_dir); | 104 void SetLastUsedProfile(const std::string& profile_dir); |
105 | 105 |
| 106 // Returns true if all non-supervised and non-child profiles are locked. |
| 107 bool AreAllProfilesLocked(); |
| 108 |
106 } // namespace profiles | 109 } // namespace profiles |
107 | 110 |
108 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 111 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |