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

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

Issue 2692663002: Gut ash::MaterialDesignController, and remove the about:flags entry. (Closed)
Patch Set: 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
Index: ash/common/system/tray/tray_constants.cc
diff --git a/ash/common/system/tray/tray_constants.cc b/ash/common/system/tray/tray_constants.cc
index 67ec8cc0ed16d8bde990dfeea0d59c086d3732f9..62285d82f65f07ff23257c926d1b8985d7cbc252 100644
--- a/ash/common/system/tray/tray_constants.cc
+++ b/ash/common/system/tray/tray_constants.cc
@@ -4,7 +4,6 @@
#include "ash/common/system/tray/tray_constants.h"
-#include "ash/common/material_design/material_design_controller.h"
#include "base/logging.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/color_palette.h"
@@ -129,10 +128,8 @@ int GetTrayConstant(TrayConstant constant) {
const int kTrayImeMenuIcon[] = {40, kTrayItemSize, kTrayItemSize};
const int kTrayImageItemPadding[] = {1, 3, 3};
- const int mode = MaterialDesignController::GetMode();
- DCHECK(mode >= MaterialDesignController::NON_MATERIAL &&
- mode <= MaterialDesignController::MATERIAL_EXPERIMENTAL);
-
+ // FIXME
tdanderson 2017/02/13 17:36:28 ditto to previous comment in shelf_constants
Evan Stade 2017/02/13 19:29:42 Done.
+ const int mode = 1;
switch (constant) {
case TRAY_ITEM_HEIGHT_LEGACY:
return kTrayItemHeightLegacy[mode];

Powered by Google App Engine
This is Rietveld 408576698