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

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

Issue 294783003: don't show border on hover for guest label in profile chooser view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dont delete that Created 6 years, 7 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 5fedd953cc6046e86be0fa3c5d4ad4ad04e28ac3..e996c05728267f07c7f071d98efdc29e66ca4106 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -225,8 +225,10 @@ class EditableProfileName : public views::LabelButton,
SetFontList(medium_font_list);
SetHorizontalAlignment(gfx::ALIGN_CENTER);
- if (!is_editing_allowed)
+ if (!is_editing_allowed) {
+ SetBorder(views::Border::CreateEmptyBorder(2, 0, 2, 0));
return;
+ }
// Show an "edit" pencil icon when hovering over. In the default state,
// we need to create an empty placeholder of the correct size, so that
« 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