Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index f77dde41f15787323485e66cc26e52179ee772ef..63507e621c183fe86420b9f5ed951cf655794ee3 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -561,8 +561,7 @@ bool BrowserView::IsGuestSession() const { |
} |
bool BrowserView::IsRegularOrGuestSession() const { |
- Profile* profile = browser_->profile(); |
- return (profile->IsGuestSession() || !profile->IsOffTheRecord()); |
+ return profiles::IsRegularOrGuestSession(browser_.get()); |
} |
int BrowserView::GetOTRIconResourceID() const { |