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

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

Issue 2389453002: Remove IsModeMaterial checks in ui/views/ (Closed)
Patch Set: oops 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
Index: ui/views/controls/button/vector_icon_button.cc
diff --git a/ui/views/controls/button/vector_icon_button.cc b/ui/views/controls/button/vector_icon_button.cc
index d40ba0574cd2bfb6aa0af0f61673ca49423c4ad4..6fc94971e637f7cfd849fa93ae1fd78b48977da0 100644
--- a/ui/views/controls/button/vector_icon_button.cc
+++ b/ui/views/controls/button/vector_icon_button.cc
@@ -4,7 +4,6 @@
#include "ui/views/controls/button/vector_icon_button.h"
-#include "ui/base/material_design/material_design_controller.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/paint_vector_icon.h"
@@ -26,8 +25,7 @@ VectorIconButton::VectorIconButton(VectorIconButtonDelegate* delegate)
: views::ImageButton(delegate),
delegate_(delegate),
id_(gfx::VectorIconId::VECTOR_ICON_NONE) {
- if (ui::MaterialDesignController::IsModeMaterial())
- SetInkDropMode(InkDropMode::ON);
+ SetInkDropMode(InkDropMode::ON);
set_has_ink_drop_action_on_click(true);
SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);

Powered by Google App Engine
This is Rietveld 408576698