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

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: fix test 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
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 a1c7843f59a566da97856fc697fd7f8a1800a3fc..53a6e172ed7813f115b57b2e9d7881c82ed1b410 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -126,10 +126,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() {}

Powered by Google App Engine
This is Rietveld 408576698