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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 // If the --google-profile-info flag is turned on, starts an update for a new | 66 // If the --google-profile-info flag is turned on, starts an update for a new |
67 // version of the Gaia profile picture and other profile info. | 67 // version of the Gaia profile picture and other profile info. |
68 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); | 68 void UpdateGaiaProfileInfoIfNeeded(Profile* profile); |
69 | 69 |
70 // Returns the sign-in error controller for the given profile. Some profiles, | 70 // Returns the sign-in error controller for the given profile. Some profiles, |
71 // like guest profiles, may not have a controller so this function may return | 71 // like guest profiles, may not have a controller so this function may return |
72 // NULL. | 72 // NULL. |
73 SigninErrorController* GetSigninErrorController(Profile* profile); | 73 SigninErrorController* GetSigninErrorController(Profile* profile); |
74 | 74 |
75 // If the current active profile (given by prefs::kProfileLastUsed) is locked, | 75 // If the current active profile (given by prefs::kProfileLastUsed) is locked, |
76 // changes the active profile to the Guest profile and returns it, otherwise | 76 // changes the active profile to the Guest profile. Returns true if the active |
77 // returns NULL. This assumes that the Guest profile has been loaded. | 77 // profile is now guest. |
noms (inactive)
2015/01/29 16:15:13
Hmm, this comment is a bit confusing. Why wouldn't
Mike Lerman
2015/01/29 16:51:40
Done.
| |
78 Profile* SetActiveProfileToGuestIfLocked(); | 78 bool SetActiveProfileToGuestIfLocked(); |
79 | 79 |
80 } // namespace profiles | 80 } // namespace profiles |
81 | 81 |
82 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ | 82 #endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_ |
OLD | NEW |