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_CHROMEOS_PROFILES_PROFILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_ |
7 | 7 |
8 class Profile; | 8 class Profile; |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 // Checks if the current log-in state and the profile is GAIA-authenticated and | 12 // Checks if the current log-in state and the profile is GAIA-authenticated and |
13 // thus has access to Google services. This excludes, for example, public | 13 // thus has access to Google services. This excludes, for example, public |
14 // accounts, locally managed users, guest or incognito profiles. | 14 // accounts, supervised users, guest or incognito profiles. |
15 bool IsProfileAssociatedWithGaiaAccount(Profile* profile); | 15 bool IsProfileAssociatedWithGaiaAccount(Profile* profile); |
16 | 16 |
17 } // namespace chromeos | 17 } // namespace chromeos |
18 | 18 |
19 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_ | 19 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_ |
OLD | NEW |