Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1545)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 117533002: [Mac] Redesign of the avatar menu button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now with less incorrect usage of initializers Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 420780308bf94909e86f7b28ab0ebd9009f41bf9..5373e0bed73fa3398cc18da68683e60a58e4aaef 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 {

Powered by Google App Engine
This is Rietveld 408576698