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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Returns true if sign in is required to browse as this profile. Call with | 67 // Returns true if sign in is required to browse as this profile. Call with |
68 // profile->GetPath() if you have a profile pointer. | 68 // profile->GetPath() if you have a profile pointer. |
69 // TODO(mlerman): Refactor appropriate calls to | 69 // TODO(mlerman): Refactor appropriate calls to |
70 // ProfileAttributesStorage::IsSigninRequired to call here instead. | 70 // ProfileAttributesStorage::IsSigninRequired to call here instead. |
71 bool IsProfileLocked(const base::FilePath& profile_path); | 71 bool IsProfileLocked(const base::FilePath& profile_path); |
72 | 72 |
73 // If the lock-enabled information for this profile is not up to date, starts | 73 // If the lock-enabled information for this profile is not up to date, starts |
74 // an update for the Gaia profile info. | 74 // an update for the Gaia profile info. |
75 void UpdateIsProfileLockEnabledIfNeeded(Profile* profile); | 75 void UpdateIsProfileLockEnabledIfNeeded(Profile* profile); |
76 | 76 |
77 // If the --google-profile-info flag is turned on, starts an update for a new | 77 // Starts an update for a new version of the Gaia profile picture and other |
78 // version of the Gaia profile picture and other profile info. | 78 // profile info. |
79 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); | 79 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); |
80 | 80 |
81 // Returns the sign-in error controller for the given profile. Some profiles, | 81 // Returns the sign-in error controller for the given profile. Some profiles, |
82 // like guest profiles, may not have a controller so this function may return | 82 // like guest profiles, may not have a controller so this function may return |
83 // NULL. | 83 // NULL. |
84 SigninErrorController* GetSigninErrorController(Profile* profile); | 84 SigninErrorController* GetSigninErrorController(Profile* profile); |
85 | 85 |
86 // If the current active profile (given by prefs::kProfileLastUsed) is locked, | 86 // If the current active profile (given by prefs::kProfileLastUsed) is locked, |
87 // changes the active profile to the Guest profile. Returns true if the active | 87 // changes the active profile to the Guest profile. Returns true if the active |
88 // profile had been Guest before calling or became Guest as a result of this | 88 // profile had been Guest before calling or became Guest as a result of this |
(...skipping 18 matching lines...) Expand all Loading... |
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. | 111 // Returns whether a public session is being run currently. |
112 bool IsPublicSession(); | 112 bool IsPublicSession(); |
113 | 113 |
114 } // namespace profiles | 114 } // namespace profiles |
115 | 115 |
116 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 116 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |