Home | History | Annotate | Download | only in profiles
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_
      6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_
      7 
      8 class Profile;
      9 
     10 namespace chromeos {
     11 
     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
     14 // accounts, locally managed users, guest or incognito profiles.
     15 bool IsProfileAssociatedWithGaiaAccount(Profile* profile);
     16 
     17 } // namespace chromeos
     18 
     19 #endif  // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_UTIL_H_
     20