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()); |
+} |
+ |
} // namespace profiles |