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

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: nico review 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
« no previous file with comments | « chrome/browser/profiles/profiles_state.h ('k') | chrome/browser/ui/cocoa/browser/avatar_base_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/profiles/profiles_state.h ('k') | chrome/browser/ui/cocoa/browser/avatar_base_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698