| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool GetFastUserSwitchingTutorialDismissedState(); | 101 bool GetFastUserSwitchingTutorialDismissedState(); |
| 102 | 102 |
| 103 // Sets the last used profile pref to |profile_dir|, unless |profile_dir| is the | 103 // Sets the last used profile pref to |profile_dir|, unless |profile_dir| is the |
| 104 // System Profile directory, which is an invalid last used profile. | 104 // System Profile directory, which is an invalid last used profile. |
| 105 void SetLastUsedProfile(const std::string& profile_dir); | 105 void SetLastUsedProfile(const std::string& profile_dir); |
| 106 | 106 |
| 107 // Returns true if there exists at least one non-supervised or non-child profile | 107 // Returns true if there exists at least one non-supervised or non-child profile |
| 108 // and they are all locked. | 108 // and they are all locked. |
| 109 bool AreAllNonChildNonSupervisedProfilesLocked(); | 109 bool AreAllNonChildNonSupervisedProfilesLocked(); |
| 110 | 110 |
| 111 // Returns whether a public session is being run currently. |
| 112 bool IsPublicSession(); |
| 113 |
| 111 } // namespace profiles | 114 } // namespace profiles |
| 112 | 115 |
| 113 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 116 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
| OLD | NEW |