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

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

Issue 2692043009: Remove last MD reference from TrayPopupUtils. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « ash/common/system/tray/tray_constants.cc ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_popup_utils.cc
diff --git a/ash/common/system/tray/tray_popup_utils.cc b/ash/common/system/tray/tray_popup_utils.cc
index e04818929fc9dc1986a752d8ed7d7b0cc411d520..828932685f48d8250e1fb94566aaaa5ae48f4453 100644
--- a/ash/common/system/tray/tray_popup_utils.cc
+++ b/ash/common/system/tray/tray_popup_utils.cc
@@ -9,7 +9,6 @@
#include "ash/common/ash_constants.h"
#include "ash/common/ash_view_ids.h"
-#include "ash/common/material_design/material_design_controller.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/system/tray/fixed_sized_image_view.h"
#include "ash/common/system/tray/size_range_layout.h"
@@ -230,15 +229,8 @@ views::ImageView* TrayPopupUtils::CreateMoreImageView() {
}
views::Slider* TrayPopupUtils::CreateSlider(views::SliderListener* listener) {
- const bool is_material = MaterialDesignController::IsSystemTrayMenuMaterial();
- views::Slider* slider = views::Slider::CreateSlider(is_material, listener);
- if (is_material) {
- slider->SetBorder(
- views::CreateEmptyBorder(gfx::Insets(0, kTrayPopupSliderPaddingMD)));
- } else {
- slider->SetBorder(
- views::CreateEmptyBorder(0, 0, 0, kTrayPopupPaddingBetweenItems));
- }
+ views::Slider* slider = new views::Slider(listener);
+ slider->SetBorder(views::CreateEmptyBorder(gfx::Insets(0, 16)));
return slider;
}
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698