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

Unified Diff: ui/views/view_unittest_aura.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: ui/views/view_unittest_aura.cc
diff --git a/ui/views/view_unittest_aura.cc b/ui/views/view_unittest_aura.cc
index 66a9fd0fb6c31098c6cb2e17d2aee245ab964dbf..351c662a951ab61d6f59a4bc1fd4f7a83a0bb9bb 100644
--- a/ui/views/view_unittest_aura.cc
+++ b/ui/views/view_unittest_aura.cc
@@ -36,7 +36,7 @@ Widget* CreateControlWidget(aura::Window* parent, const gfx::Rect& bounds) {
View* CreateViewWithLayer(const gfx::Rect& bounds, const char* layer_name) {
View* view = new View();
view->SetBoundsRect(bounds);
- view->SetPaintToLayer(true);
+ view->SetPaintToLayer();
view->layer()->set_name(layer_name);
return view;
}

Powered by Google App Engine
This is Rietveld 408576698