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

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

Issue 8872015: [cros] Use a distinct icon for the guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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.h
diff --git a/chrome/browser/ui/views/frame/browser_view.h b/chrome/browser/ui/views/frame/browser_view.h
index 1d8444c3bec55e5e6842f49afc9f9bf040c0def4..24c010ef43d322f251819e5bd9eee5ae95b77866 100644
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -158,6 +158,10 @@ class BrowserView : public BrowserWindow,
// incognito.
bool IsOffTheRecord() const;
+ // Returns true if the profile associated with this Browser window is
+ // a guest session.
+ bool IsGuestSession() const;
+
// Returns true if the non-client view should render an avatar icon.
virtual bool ShouldShowAvatar() const;
@@ -185,7 +189,10 @@ class BrowserView : public BrowserWindow,
TabContentsWrapper* GetSelectedTabContentsWrapper() const;
// Retrieves the icon to use in the frame to indicate an OTR window.
- SkBitmap GetOTRAvatarIcon();
+ SkBitmap GetOTRAvatarIcon() const;
+
+ // Retrieves the icon to use in the frame to indicate guest session.
+ SkBitmap GetGuestAvatarIcon() const;
#if defined(OS_WIN)
// Called right before displaying the system menu to allow the BrowserView
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698