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

Unified Diff: chrome/browser/profiles/profiles_state.cc

Issue 117533002: [Mac] Redesign of the avatar menu button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tabstrip width 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/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

Powered by Google App Engine
This is Rietveld 408576698