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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // If the --google-profile-info flag is turned on, starts an update for a new | 62 // If the --google-profile-info flag is turned on, starts an update for a new |
63 // version of the Gaia profile picture. | 63 // version of the Gaia profile picture. |
64 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); | 64 void UpdateGaiaProfilePhotoIfNeeded(Profile* profile); |
65 | 65 |
66 // Returns the sign-in error controller for the given profile. Some profiles, | 66 // 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 | 67 // like guest profiles, may not have a controller so this function may return |
68 // NULL. | 68 // NULL. |
69 SigninErrorController* GetSigninErrorController(Profile* profile); | 69 SigninErrorController* GetSigninErrorController(Profile* profile); |
70 | 70 |
| 71 // If the current active profile (given by prefs::kProfileLastUsed) is locked, |
| 72 // changes the active profile to the Guest profile. This assumes that the Guest |
| 73 // profile has been loaded. |
| 74 void SetActiveProfileToGuestIfLocked(); |
| 75 |
71 } // namespace profiles | 76 } // namespace profiles |
72 | 77 |
73 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 78 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |