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

Unified Diff: chrome/browser/profiles/avatar_menu_model.h

Issue 12379014: Hide add new profile menu entry for managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract avatar_menu_bubble_view.cc Created 7 years, 10 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 | « no previous file | chrome/browser/profiles/avatar_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/avatar_menu_model.h
diff --git a/chrome/browser/profiles/avatar_menu_model.h b/chrome/browser/profiles/avatar_menu_model.h
index 965913ddd2ec5399c611251e76f66d7a8815e1c4..308a8250299490cca826277f73ab7222b5b77bbd 100644
--- a/chrome/browser/profiles/avatar_menu_model.h
+++ b/chrome/browser/profiles/avatar_menu_model.h
@@ -78,6 +78,9 @@ class AvatarMenuModel : public content::NotificationObserver {
// Gets the an Item at a specified index.
const Item& GetItemAt(size_t index);
+ // Returns true if the add profile link should be shown.
+ bool ShouldShowAddNewProfileLink() const;
+
// This model is also used for the always-present Mac system menubar. As the
// last active browser changes, the model needs to update accordingly.
void set_browser(Browser* browser) { browser_ = browser; }
« no previous file with comments | « no previous file | chrome/browser/profiles/avatar_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698