Chromium Code Reviews| Index: chrome/browser/profiles/profiles_state.cc |
| diff --git a/chrome/browser/profiles/profiles_state.cc b/chrome/browser/profiles/profiles_state.cc |
| index 62be3add6d38f38d49c4cbac7e14bf0eda86dec8..f3a091f5486c17eefdd042b26b3e8cf44843cc0f 100644 |
| --- a/chrome/browser/profiles/profiles_state.cc |
| +++ b/chrome/browser/profiles/profiles_state.cc |
| @@ -101,4 +101,9 @@ void UpdateProfileName(Profile* profile, |
| } |
| } |
| +bool IsRegularOrGuestSession(Browser* browser) { |
| + Profile* profile = browser->profile(); |
| + return (profile->IsGuestSession() || !profile->IsOffTheRecord()); |
|
Nico
2014/01/14 03:56:02
nit: no parens
noms (inactive)
2014/01/15 22:07:47
Done.
|
| +} |
| + |
| } // namespace profiles |