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 330cf1e3d620527cd0fe13bd21e5f395dc29f26c..70a7acce1f2e9845832fe299a69a239ec9313ec3 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -549,6 +549,15 @@ bool BrowserView::IsOffTheRecord() const { |
return browser_->profile()->IsOffTheRecord(); |
} |
+bool BrowserView::IsGuestSession() const { |
+ return browser_->profile()->IsGuestSession(); |
+} |
+ |
+bool BrowserView::IsRegularOrGuestSession() const { |
+ Profile* profile = browser_->profile(); |
+ return (profile->IsGuestSession() || !profile->IsOffTheRecord()); |
+} |
+ |
int BrowserView::GetOTRIconResourceID() const { |
int otr_resource_id = IDR_OTR_ICON; |
if (ui::GetDisplayLayout() == ui::LAYOUT_TOUCH) { |
@@ -563,10 +572,6 @@ int BrowserView::GetOTRIconResourceID() const { |
return otr_resource_id; |
} |
-bool BrowserView::IsGuestSession() const { |
- return browser_->profile()->IsGuestSession(); |
-} |
- |
int BrowserView::GetGuestIconResourceID() const { |
return IDR_GUEST_ICON; |
} |