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 "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
9 | 10 |
10 class Browser; | 11 class Browser; |
11 class PrefRegistrySimple; | 12 class PrefRegistrySimple; |
12 class Profile; | 13 class Profile; |
13 namespace base { class FilePath; } | 14 namespace base { class FilePath; } |
14 | 15 |
15 namespace profiles { | 16 namespace profiles { |
16 | 17 |
17 // Checks if multiple profiles is enabled. | 18 // Checks if multiple profiles is enabled. |
(...skipping 10 matching lines...) Expand all Loading... | |
28 void RegisterPrefs(PrefRegistrySimple* registry); | 29 void RegisterPrefs(PrefRegistrySimple* registry); |
29 | 30 |
30 // Returns the display name of the active on-the-record profile (or guest). | 31 // Returns the display name of the active on-the-record profile (or guest). |
31 base::string16 GetActiveProfileDisplayName(Browser* browser); | 32 base::string16 GetActiveProfileDisplayName(Browser* browser); |
32 | 33 |
33 // Update the name of |profile| to |new_profile_name|. This updates the | 34 // Update the name of |profile| to |new_profile_name|. This updates the |
34 // profile preferences, which triggers an update in the ProfileInfoCache. | 35 // profile preferences, which triggers an update in the ProfileInfoCache. |
35 void UpdateProfileName(Profile* profile, | 36 void UpdateProfileName(Profile* profile, |
36 const base::string16& new_profile_name); | 37 const base::string16& new_profile_name); |
37 | 38 |
39 // Returns the list of secondary accounts for a specific |profile|, which is | |
40 // all the accounts associated with the profile that are not equal to | |
41 // the |primary_account|. | |
Alexei Svitkine (slow)
2014/01/08 21:28:37
Nit: Mention what these strings are - e.g. email a
noms (inactive)
2014/01/08 21:35:13
Done.
| |
42 std::vector<std::string> GetSecondaryAccountsForProfile( | |
43 Profile* profile, const std::string& primary_account); | |
44 | |
38 } // namespace profiles | 45 } // namespace profiles |
39 | 46 |
40 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 47 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |