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

Unified Diff: chrome/browser/ui/views/avatar_menu_bubble_view.h

Issue 12388073: Hide the add new profile menu item for managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adress review comment. 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/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/avatar_menu_bubble_view.h
diff --git a/chrome/browser/ui/views/avatar_menu_bubble_view.h b/chrome/browser/ui/views/avatar_menu_bubble_view.h
index 560c1845e97f2a3e4924fbafea873c5cd328823c..98deb7ad35af8614462c001193db2673128b89b1 100644
--- a/chrome/browser/ui/views/avatar_menu_bubble_view.h
+++ b/chrome/browser/ui/views/avatar_menu_bubble_view.h
@@ -77,12 +77,16 @@ class AvatarMenuBubbleView : public views::BubbleDelegateView,
const gfx::Rect& anchor_rect,
Browser* browser);
- views::Link* add_profile_link_;
scoped_ptr<AvatarMenuModel> avatar_menu_model_;
gfx::Rect anchor_rect_;
Browser* browser_;
std::vector<views::CustomButton*> item_views_;
+
+ // These will be non-NULL iff
+ // avatar_menu_model_->ShouldShowAddNewProfileLink() returns true. See
+ // OnAvatarMenuModelChanged().
views::Separator* separator_;
+ views::Link* add_profile_link_;
static AvatarMenuBubbleView* avatar_bubble_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_menu_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698