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

Unified Diff: chrome/browser/ui/views/toolbar/app_menu_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: add comment 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: chrome/browser/ui/views/toolbar/app_menu_button.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu_button.cc b/chrome/browser/ui/views/toolbar/app_menu_button.cc
index d3a6b9bfc7ac2ec6bcce2a5acd73263fb6872dc8..a6a1e8ef3e2508d71322e51297f09ae2f398db08 100644
--- a/chrome/browser/ui/views/toolbar/app_menu_button.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu_button.cc
@@ -43,10 +43,12 @@ AppMenuButton::AppMenuButton(ToolbarView* toolbar_view)
extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()),
margin_trailing_(0),
weak_factory_(this) {
- if (ui::MaterialDesignController::IsModeMaterial())
+ if (ui::MaterialDesignController::IsModeMaterial()) {
SetHasInkDrop(true);
- else
+ SetFocusPainter(nullptr);
+ } else {
icon_painter_.reset(new AppMenuIconPainter(this));
+ }
}
AppMenuButton::~AppMenuButton() {}
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_action_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698