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

Unified Diff: ash/shell/lock_view.cc

Issue 2296173004: Remove some more LabelButton::STYLE_BUTTON references. (Closed)
Patch Set: nullptr Created 4 years, 3 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 | ash/shell/widgets.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/lock_view.cc
diff --git a/ash/shell/lock_view.cc b/ash/shell/lock_view.cc
index 7de70a40cebc77e7c7572208487f517ec758caf9..7241e4b70403cb41504bb1b2d23f14e8749d9e20 100644
--- a/ash/shell/lock_view.cc
+++ b/ash/shell/lock_view.cc
@@ -14,7 +14,7 @@
#include "ui/gfx/font_list.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/text_utils.h"
-#include "ui/views/controls/button/label_button.h"
+#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/corewm/tooltip_controller.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
@@ -27,8 +27,8 @@ class LockView : public views::WidgetDelegateView,
public:
LockView()
: unlock_button_(
- new views::LabelButton(this, base::ASCIIToUTF16("Unlock"))) {
- unlock_button_->SetStyle(views::Button::STYLE_BUTTON);
+ views::MdTextButton::CreateMdButton(this,
+ base::ASCIIToUTF16("Unlock"))) {
AddChildView(unlock_button_);
}
~LockView() override {}
@@ -73,7 +73,7 @@ class LockView : public views::WidgetDelegateView,
}
gfx::FontList font_list_;
- views::LabelButton* unlock_button_;
+ views::Button* unlock_button_;
DISALLOW_COPY_AND_ASSIGN(LockView);
};
« no previous file with comments | « no previous file | ash/shell/widgets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698