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

Unified Diff: ash/common/system/tray/tray_details_view_unittest.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_details_view_unittest.cc
diff --git a/ash/common/system/tray/tray_details_view_unittest.cc b/ash/common/system/tray/tray_details_view_unittest.cc
index 0fb4de64ea8e9cded6427b6fef247bdbe43c12c6..a3eceb2e548a795da13b38f0953d30786a3baae9 100644
--- a/ash/common/system/tray/tray_details_view_unittest.cc
+++ b/ash/common/system/tray/tray_details_view_unittest.cc
@@ -326,14 +326,14 @@ TEST_F(TrayDetailsViewTest, ScrollContentsTest) {
RunAllPendingInMessageLoop();
test_item->detailed_view()->CreateScrollerViews();
- test_item->detailed_view()->scroll_content()->SetPaintToLayer(true);
+ test_item->detailed_view()->scroll_content()->SetPaintToLayer();
views::View* view1 = new views::View();
test_item->detailed_view()->scroll_content()->AddChildView(view1);
views::View* view2 = new views::View();
- view2->SetPaintToLayer(true);
+ view2->SetPaintToLayer();
test_item->detailed_view()->scroll_content()->AddChildView(view2);
views::View* view3 = new views::View();
- view3->SetPaintToLayer(true);
+ view3->SetPaintToLayer();
test_item->detailed_view()->scroll_content()->AddChildView(view3);
// Child layers should have same order as the child views.
@@ -346,7 +346,7 @@ TEST_F(TrayDetailsViewTest, ScrollContentsTest) {
// Mark |view2| as sticky and add one more child (which will reorder layers).
view2->set_id(VIEW_ID_STICKY_HEADER);
views::View* view4 = new views::View();
- view4->SetPaintToLayer(true);
+ view4->SetPaintToLayer();
test_item->detailed_view()->scroll_content()->AddChildView(view4);
// Sticky header layer should be above the last child's layer.

Powered by Google App Engine
This is Rietveld 408576698