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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 2069733002: MD - Use real comboboxes in website settings popup. Hide borders (but (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 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 | « ui/views/controls/button/blue_button_unittest.cc ('k') | ui/views/controls/combobox/combobox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index 81f44e36cc0287eafb34e5341a55fb2db6bbb063..57b87d6539775562768f5c2ebbdff57b6114586f 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -127,10 +127,8 @@ LabelButton::LabelButton(ButtonListener* listener, const base::string16& text)
label_->SetHorizontalAlignment(gfx::ALIGN_TO_HEAD);
// Inset the button focus rect from the actual border; roughly match Windows.
- if (!ui::MaterialDesignController::IsModeMaterial()) {
- SetFocusPainter(Painter::CreateDashedFocusPainterWithInsets(gfx::Insets(
- kFocusRectInset, kFocusRectInset, kFocusRectInset, kFocusRectInset)));
- }
+ SetFocusPainter(Painter::CreateDashedFocusPainterWithInsets(gfx::Insets(
+ kFocusRectInset, kFocusRectInset, kFocusRectInset, kFocusRectInset)));
}
LabelButton::~LabelButton() {}
« no previous file with comments | « ui/views/controls/button/blue_button_unittest.cc ('k') | ui/views/controls/combobox/combobox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698