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

Unified Diff: ash/common/wm/workspace/phantom_window_controller.cc

Issue 2637383003: Change Painter factory functions to unique_ptr (Closed)
Patch Set: update more stuff 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/wm/workspace/phantom_window_controller.cc
diff --git a/ash/common/wm/workspace/phantom_window_controller.cc b/ash/common/wm/workspace/phantom_window_controller.cc
index bd56e4dea5fdf622209c462e3dec863364508fd5..2843d939f75112d32f82c72cb023a7f94f226971 100644
--- a/ash/common/wm/workspace/phantom_window_controller.cc
+++ b/ash/common/wm/workspace/phantom_window_controller.cc
@@ -130,11 +130,9 @@ std::unique_ptr<views::Widget> PhantomWindowController::CreatePhantomWidget(
}
const int kImages[] = IMAGE_GRID(IDR_AURA_PHANTOM_WINDOW);
- views::Painter* background_painter =
- views::Painter::CreateImageGridPainter(kImages);
views::View* content_view = new views::View;
- content_view->set_background(
- views::Background::CreateBackgroundPainter(true, background_painter));
+ content_view->set_background(views::Background::CreateBackgroundPainter(
+ views::Painter::CreateImageGridPainter(kImages)));
phantom_widget->SetContentsView(content_view);
// Show the widget after all the setups.

Powered by Google App Engine
This is Rietveld 408576698