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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 338093004: New avatar menu cleanup: Move supervised user disclaimer into appropriate position. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/profiles/profile_chooser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index ba08b6d7ec458b5492c0a27e54c474fdee0066dd..d8cb64267a881a96d03ed53429a942a49f321b98 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -1015,16 +1015,6 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
[container addSubview:separator];
yOffset = NSMaxY([separator frame]);
}
- } else if (viewMode_ == profiles::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT) {
- NSView* currentProfileAccountsView = [self createCurrentProfileAccountsView:
- NSMakeRect(0, yOffset, kFixedMenuWidth, 0)];
- [container addSubview:currentProfileAccountsView];
- yOffset = NSMaxY([currentProfileAccountsView frame]);
-
- NSBox* accountsSeparator = [self separatorWithFrame:
- NSMakeRect(0, yOffset, kFixedMenuWidth, 0)];
- [container addSubview:accountsSeparator];
- yOffset = NSMaxY([accountsSeparator frame]);
}
// For supervised users, add the disclaimer text.
@@ -1042,6 +1032,18 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
yOffset = NSMaxY([separator frame]);
}
+ if (viewMode_ == profiles::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT) {
+ NSView* currentProfileAccountsView = [self createCurrentProfileAccountsView:
+ NSMakeRect(0, yOffset, kFixedMenuWidth, 0)];
+ [container addSubview:currentProfileAccountsView];
+ yOffset = NSMaxY([currentProfileAccountsView frame]);
+
+ NSBox* accountsSeparator = [self separatorWithFrame:
+ NSMakeRect(0, yOffset, kFixedMenuWidth, 0)];
+ [container addSubview:accountsSeparator];
+ yOffset = NSMaxY([accountsSeparator frame]);
+ }
+
// Active profile card.
if (currentProfileView) {
yOffset += kVerticalSpacing;
« no previous file with comments | « no previous file | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698