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 | 10 |
11 class Browser; | 11 class Browser; |
12 class PrefRegistrySimple; | 12 class PrefRegistrySimple; |
13 class Profile; | 13 class Profile; |
14 class SigninErrorController; | 14 class SigninErrorController; |
15 namespace base { class FilePath; } | 15 namespace base { class FilePath; } |
16 | 16 |
17 namespace profiles { | 17 namespace profiles { |
18 | 18 |
19 // The determining factor around whether lock needs to be updated will change | |
20 // over time. | |
21 const int kCurrentLockAlgorithmVersion = 1; | |
22 | |
19 // Checks if multiple profiles is enabled. | 23 // Checks if multiple profiles is enabled. |
20 bool IsMultipleProfilesEnabled(); | 24 bool IsMultipleProfilesEnabled(); |
21 | 25 |
22 // Returns the path to the default profile directory, based on the given | 26 // Returns the path to the default profile directory, based on the given |
23 // user data directory. | 27 // user data directory. |
24 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir); | 28 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir); |
25 | 29 |
26 // Register multi-profile related preferences in Local State. | 30 // Register multi-profile related preferences in Local State. |
27 void RegisterPrefs(PrefRegistrySimple* registry); | 31 void RegisterPrefs(PrefRegistrySimple* registry); |
28 | 32 |
(...skipping 23 matching lines...) Expand all Loading... | |
52 // the |primary_account|. | 56 // the |primary_account|. |
53 std::vector<std::string> GetSecondaryAccountsForProfile( | 57 std::vector<std::string> GetSecondaryAccountsForProfile( |
54 Profile* profile, | 58 Profile* profile, |
55 const std::string& primary_account); | 59 const std::string& primary_account); |
56 | 60 |
57 // Returns whether the |browser|'s profile is a non-incognito or guest profile. | 61 // Returns whether the |browser|'s profile is a non-incognito or guest profile. |
58 // The distinction is needed because guest profiles are implemented as | 62 // The distinction is needed because guest profiles are implemented as |
59 // incognito profiles. | 63 // incognito profiles. |
60 bool IsRegularOrGuestSession(Browser* browser); | 64 bool IsRegularOrGuestSession(Browser* browser); |
61 | 65 |
66 // If the lock-enabled information for this profile is not up to date, starts | |
67 // an update for the Gaia profile info. | |
68 void UpdateIsProfileLockEnabledIfNeeded(Profile* profile); | |
69 | |
62 // If the --google-profile-info flag is turned on, starts an update for a new | 70 // If the --google-profile-info flag is turned on, starts an update for a new |
63 // version of the Gaia profile picture. | 71 // version of the Gaia profile picture amd other profile info. |
noms (inactive)
2014/09/12 19:33:25
s/amd/and :)
Mike Lerman
2014/09/15 14:08:56
What if I just really don't like NVidia?
| |
64 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); | 72 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); |
65 | 73 |
66 // Returns the sign-in error controller for the given profile. Some profiles, | 74 // Returns the sign-in error controller for the given profile. Some profiles, |
67 // like guest profiles, may not have a controller so this function may return | 75 // like guest profiles, may not have a controller so this function may return |
68 // NULL. | 76 // NULL. |
69 SigninErrorController* GetSigninErrorController(Profile* profile); | 77 SigninErrorController* GetSigninErrorController(Profile* profile); |
70 | 78 |
71 } // namespace profiles | 79 } // namespace profiles |
72 | 80 |
73 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 81 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |