Index: chrome/browser/profiles/profiles_state.cc |
diff --git a/chrome/browser/profiles/profiles_state.cc b/chrome/browser/profiles/profiles_state.cc |
index 961fe6d941a988d8b5cf0fe47a7a78f5b55aff0f..e1b960e5879fd42c5b948860182c6e8f38989e08 100644 |
--- a/chrome/browser/profiles/profiles_state.cc |
+++ b/chrome/browser/profiles/profiles_state.cc |
@@ -120,4 +120,9 @@ std::vector<std::string> GetSecondaryAccountsForProfile( |
return accounts; |
} |
+bool IsRegularOrGuestSession(Browser* browser) { |
+ Profile* profile = browser->profile(); |
+ return profile->IsGuestSession() || !profile->IsOffTheRecord(); |
+} |
+ |
} // namespace profiles |