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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 1830903006: Renders the profile name button in profile chooser view for supervised user. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index f800d2d2cc5292d4d1e988c1f2cc4dab36c7bdff..4f5bbbca35eb4e8b5f24d1077e8dd5e4683d79de 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -395,6 +395,7 @@ class EditableProfileName : public views::View,
const gfx::FontList& medium_font_list =
rb->GetFontList(ui::ResourceBundle::MediumFont);
button_->SetFontList(medium_font_list);
+ AddChildView(button_);
if (!is_editing_allowed) {
button_->SetBorder(views::Border::CreateEmptyBorder(2, 0, 2, 0));
@@ -431,7 +432,6 @@ class EditableProfileName : public views::View,
SetLayoutManager(
new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0));
Peter Kasting 2016/03/25 04:34:45 We don't need this to be moved up as well, because
Shu Chen 2016/03/25 05:48:11 Yes, that is right.
Shu Chen 2016/03/27 08:08:06 Sorry, the issue still repro on the latest canary.
- AddChildView(button_);
AddChildView(profile_name_textfield_);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698