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 namespace base { class FilePath; } | 15 namespace base { class FilePath; } |
15 | 16 |
16 namespace profiles { | 17 namespace profiles { |
17 | 18 |
18 // Checks if multiple profiles is enabled. | 19 // Checks if multiple profiles is enabled. |
19 bool IsMultipleProfilesEnabled(); | 20 bool IsMultipleProfilesEnabled(); |
20 | 21 |
21 // Returns the path to the default profile directory, based on the given | 22 // Returns the path to the default profile directory, based on the given |
22 // user data directory. | 23 // user data directory. |
23 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir); | 24 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir); |
(...skipping 21 matching lines...) Expand all Loading... |
45 | 46 |
46 // Returns whether the |browser|'s profile is a non-incognito or guest profile. | 47 // Returns whether the |browser|'s profile is a non-incognito or guest profile. |
47 // The distinction is needed because guest profiles are implemented as | 48 // The distinction is needed because guest profiles are implemented as |
48 // incognito profiles. | 49 // incognito profiles. |
49 bool IsRegularOrGuestSession(Browser* browser); | 50 bool IsRegularOrGuestSession(Browser* browser); |
50 | 51 |
51 // If the --google-profile-info flag is turned on, starts an update for a new | 52 // If the --google-profile-info flag is turned on, starts an update for a new |
52 // version of the Gaia profile picture. | 53 // version of the Gaia profile picture. |
53 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); | 54 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); |
54 | 55 |
| 56 // Returns the sign-in error controller for the given profile. Some profiles, |
| 57 // like guest profiles, may not have a controller so this function may return |
| 58 // NULL. |
| 59 SigninErrorController* GetSigninErrorController(Profile* profile); |
| 60 |
55 } // namespace profiles | 61 } // namespace profiles |
56 | 62 |
57 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 63 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |