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

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

Issue 8895001: Revert 113797 - Revert 113789 - [cros] Use a distinct icon for the guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- chrome/browser/ui/views/frame/browser_view.h (revision 113797)
+++ chrome/browser/ui/views/frame/browser_view.h (working copy)
@@ -158,6 +158,10 @@
// 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,8 +189,11 @@
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
// to add or delete entries.
« 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