| 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 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // the |primary_account|. | 52 // the |primary_account|. |
| 53 std::vector<std::string> GetSecondaryAccountsForProfile( | 53 std::vector<std::string> GetSecondaryAccountsForProfile( |
| 54 Profile* profile, | 54 Profile* profile, |
| 55 const std::string& primary_account); | 55 const std::string& primary_account); |
| 56 | 56 |
| 57 // Returns whether the |browser|'s profile is a non-incognito or guest profile. | 57 // Returns whether the |browser|'s profile is a non-incognito or guest profile. |
| 58 // The distinction is needed because guest profiles are implemented as | 58 // The distinction is needed because guest profiles are implemented as |
| 59 // incognito profiles. | 59 // incognito profiles. |
| 60 bool IsRegularOrGuestSession(Browser* browser); | 60 bool IsRegularOrGuestSession(Browser* browser); |
| 61 | 61 |
| 62 // If the lock-enabled information for this profile is not up to date, starts |
| 63 // an update for the Gaia profile info. |
| 64 void UpdateIsProfileLockEnabledIfNeeded(Profile* profile); |
| 65 |
| 62 // If the --google-profile-info flag is turned on, starts an update for a new | 66 // If the --google-profile-info flag is turned on, starts an update for a new |
| 63 // version of the Gaia profile picture. | 67 // version of the Gaia profile picture and other profile info. |
| 64 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); | 68 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); |
| 65 | 69 |
| 66 // Returns the sign-in error controller for the given profile. Some profiles, | 70 // 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 | 71 // like guest profiles, may not have a controller so this function may return |
| 68 // NULL. | 72 // NULL. |
| 69 SigninErrorController* GetSigninErrorController(Profile* profile); | 73 SigninErrorController* GetSigninErrorController(Profile* profile); |
| 70 | 74 |
| 71 } // namespace profiles | 75 } // namespace profiles |
| 72 | 76 |
| 73 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 77 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
| OLD | NEW |