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

Unified Diff: ash/common/system/tray/system_menu_button.cc

Issue 2675893002: Remove some pre-md code from TrayPopupUtils and UserView. (Closed)
Patch Set: Created 3 years, 11 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: ash/common/system/tray/system_menu_button.cc
diff --git a/ash/common/system/tray/system_menu_button.cc b/ash/common/system/tray/system_menu_button.cc
index d9e04a22a644963269c57c41718252619656c2db..d0cca16bd90e515bba84001fc6d09ec4b9ad5b90 100644
--- a/ash/common/system/tray/system_menu_button.cc
+++ b/ash/common/system/tray/system_menu_button.cc
@@ -39,14 +39,8 @@ SystemMenuButton::SystemMenuButton(views::ButtonListener* listener,
SetTooltipText(l10n_util::GetStringUTF16(accessible_name_id));
- SetFocusForPlatform();
- SetFocusPainter(views::Painter::CreateSolidFocusPainter(
- kFocusBorderColor, kFocusBorderThickness, gfx::InsetsF()));
-
- SetInkDropMode(InkDropMode::ON);
- set_has_ink_drop_action_on_click(true);
- set_ink_drop_base_color(kTrayPopupInkDropBaseColor);
- set_ink_drop_visible_opacity(kTrayPopupInkDropRippleOpacity);
+ SetFocusPainter(TrayPopupUtils::CreateFocusPainter());
+ TrayPopupUtils::ConfigureTrayPopupButton(this);
}
SystemMenuButton::SystemMenuButton(views::ButtonListener* listener,

Powered by Google App Engine
This is Rietveld 408576698