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

Unified Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager.h

Issue 197773004: Move avatar holder code to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 6 years, 9 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/ash/multi_user/multi_user_window_manager.h
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_window_manager.h b/chrome/browser/ui/ash/multi_user/multi_user_window_manager.h
index 3677465b7627fe46f284e3e24b0b416d627dcc49..af43f3ec414a68af8d34f944ba50e54b24805449 100644
--- a/chrome/browser/ui/ash/multi_user/multi_user_window_manager.h
+++ b/chrome/browser/ui/ash/multi_user/multi_user_window_manager.h
@@ -10,7 +10,10 @@
#include <string>
class Browser;
-class Profile;
+
+namespace content {
+class BrowserContext;
+}
namespace aura {
class Window;
@@ -75,6 +78,11 @@ class MultiUserWindowManager {
// will get returned.
static MultiProfileMode GetMultiProfileMode();
+ // Whether or not the window's title should show the avatar. On chromeos,
+ // this is true when the owner of the window is different from the owner of
+ // the desktop.
+ static bool ShouldShowAvatar(aura::Window* window);
+
// Removes the instance.
static void DeleteInstance();
@@ -124,7 +132,7 @@ class MultiUserWindowManager {
// known to the manager. Note: This function is not implemented as a
// SessionStateObserver to coordinate the timing of the addition with other
// modules.
- virtual void AddUser(Profile* profile) = 0;
+ virtual void AddUser(content::BrowserContext* profile) = 0;
// Manages observers.
virtual void AddObserver(Observer* observer) = 0;

Powered by Google App Engine
This is Rietveld 408576698