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 "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 class Browser; | 10 class Browser; |
(...skipping 17 matching lines...) Expand all Loading... |
28 void RegisterPrefs(PrefRegistrySimple* registry); | 28 void RegisterPrefs(PrefRegistrySimple* registry); |
29 | 29 |
30 // Returns the display name of the active on-the-record profile (or guest). | 30 // Returns the display name of the active on-the-record profile (or guest). |
31 base::string16 GetActiveProfileDisplayName(Browser* browser); | 31 base::string16 GetActiveProfileDisplayName(Browser* browser); |
32 | 32 |
33 // Update the name of |profile| to |new_profile_name|. This updates the | 33 // Update the name of |profile| to |new_profile_name|. This updates the |
34 // profile preferences, which triggers an update in the ProfileInfoCache. | 34 // profile preferences, which triggers an update in the ProfileInfoCache. |
35 void UpdateProfileName(Profile* profile, | 35 void UpdateProfileName(Profile* profile, |
36 const base::string16& new_profile_name); | 36 const base::string16& new_profile_name); |
37 | 37 |
| 38 // Returns whether the |browser|'s profile is a non-incognito or guest profile. |
| 39 // The distinction is needed because guest profiles are implemented as |
| 40 // incognito profiles. |
| 41 bool IsRegularOrGuestSession(Browser* browser); |
| 42 |
38 } // namespace profiles | 43 } // namespace profiles |
39 | 44 |
40 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 45 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |