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

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

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: fix comments 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/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 2abe1f65a88613ba200b6e66e90704a931aa3d2b..608d5679547b067eda283d05e6a9bc762dcf7777 100644
--- a/ash/common/system/tray/tray_popup_utils.cc
+++ b/ash/common/system/tray/tray_popup_utils.cc
@@ -286,7 +286,7 @@ void TrayPopupUtils::ConfigureAsStickyHeader(views::View* view) {
views::Background::CreateSolidBackground(kBackgroundColor));
view->SetBorder(
views::CreateEmptyBorder(gfx::Insets(kMenuSeparatorVerticalPadding, 0)));
- view->SetPaintToLayer(true);
+ view->SetPaintToLayer();
view->layer()->SetFillsBoundsOpaquely(false);
}

Powered by Google App Engine
This is Rietveld 408576698