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

Unified Diff: mash/task_viewer/task_viewer.cc

Issue 2357363002: Update a few STYLE_BUTTON buttons in mash. (Closed)
Patch Set: qualify with namespace 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 | « mash/screenlock/screenlock.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/task_viewer/task_viewer.cc
diff --git a/mash/task_viewer/task_viewer.cc b/mash/task_viewer/task_viewer.cc
index d0e5259b2affc5fcc7c6b40294d1b6a22dfa471f..445cd02b20d80cd9c2db374b4c67da49347d9276 100644
--- a/mash/task_viewer/task_viewer.cc
+++ b/mash/task_viewer/task_viewer.cc
@@ -23,7 +23,7 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/resources/grit/ui_resources.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/table/table_view.h"
#include "ui/views/controls/table/table_view_observer.h"
#include "ui/views/mus/aura_init.h"
@@ -50,7 +50,8 @@ class TaskViewerContents : public views::WidgetDelegateView,
table_view_(nullptr),
table_view_parent_(nullptr),
kill_button_(
- new views::LabelButton(this, base::ASCIIToUTF16("Kill Process"))),
+ views::MdTextButton::Create(this,
+ base::ASCIIToUTF16("Kill Process"))),
observer_(nullptr),
weak_ptr_factory_(this) {
// We don't want to show an empty UI on startup, so just block until we
@@ -64,7 +65,6 @@ class TaskViewerContents : public views::WidgetDelegateView,
table_view_parent_ = table_view_->CreateParentIfNecessary();
AddChildView(table_view_parent_);
- kill_button_->SetStyle(views::Button::STYLE_BUTTON);
AddChildView(kill_button_);
}
~TaskViewerContents() override {
@@ -260,7 +260,7 @@ class TaskViewerContents : public views::WidgetDelegateView,
views::TableView* table_view_;
views::View* table_view_parent_;
- views::LabelButton* kill_button_;
+ views::MdTextButton* kill_button_;
ui::TableModelObserver* observer_;
std::vector<std::unique_ptr<InstanceInfo>> instances_;
« no previous file with comments | « mash/screenlock/screenlock.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698