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

Unified Diff: ui/views/examples/widget_example.cc

Issue 2855093002: Remove a new usage of LabelButton::SetStyle (in ChromeCleanerDialog). (Closed)
Patch Set: views:: Created 3 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 | « ui/views/examples/button_example.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/widget_example.cc
diff --git a/ui/views/examples/widget_example.cc b/ui/views/examples/widget_example.cc
index 71bd71be41a59cb49d6aaf1251872bbde0e23134..93a152cba168af2140790632e9501bc1d541c58b 100644
--- a/ui/views/examples/widget_example.cc
+++ b/ui/views/examples/widget_example.cc
@@ -8,7 +8,7 @@
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "ui/views/background.h"
-#include "ui/views/controls/button/label_button.h"
+#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/view.h"
@@ -55,9 +55,8 @@ base::string16 DialogExample::GetWindowTitle() const {
}
View* DialogExample::CreateExtraView() {
- LabelButton* button = new LabelButton(NULL, ASCIIToUTF16("Extra button!"));
- button->SetStyle(Button::STYLE_BUTTON);
- return button;
+ return MdTextButton::CreateSecondaryUiButton(nullptr,
+ ASCIIToUTF16("Extra button!"));
}
View* DialogExample::CreateFootnoteView() {
« no previous file with comments | « ui/views/examples/button_example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698