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

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

Issue 2618383003: Remove the extra separator appears on the right side of the shelf (Closed)
Patch Set: update name 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_tray.cc
diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
index 27609771d7d4feceac7ad6445c193a27aa089627..12e20f3a137dbbf9000a352f5b1952e760dc46ee 100644
--- a/ash/common/system/tray/system_tray.cc
+++ b/ash/common/system/tray/system_tray.cc
@@ -221,6 +221,10 @@ SystemTray::SystemTray(WmShelf* wm_shelf)
if (MaterialDesignController::IsShelfMaterial()) {
SetInkDropMode(InkDropMode::ON);
SetContentsBackground(false);
+
+ // Since |system_tray| locates on the right most position, no separator is
+ // required on its right side.
+ set_separator_visibility(false);
} else {
SetContentsBackground(true);
}
« no previous file with comments | « ash/common/system/chromeos/session/logout_button_tray.cc ('k') | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698