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

Unified Diff: ash/common/wm/window_cycle_list.cc

Issue 2637383003: Change Painter factory functions to unique_ptr (Closed)
Patch Set: msw review 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
« no previous file with comments | « no previous file | ash/common/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_cycle_list.cc
diff --git a/ash/common/wm/window_cycle_list.cc b/ash/common/wm/window_cycle_list.cc
index bc2f2d00c6011d74c6fa551a384e6e4e70bf33ab..c486947c27bb94a0a357023e5f9b71fbbb12dc57 100644
--- a/ash/common/wm/window_cycle_list.cc
+++ b/ash/common/wm/window_cycle_list.cc
@@ -14,7 +14,6 @@
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
#include "base/command_line.h"
-#include "base/memory/ptr_util.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/display/display.h"
@@ -247,9 +246,9 @@ class WindowCycleView : public views::WidgetDelegateView {
// because the layer animates bounds changes but the View's bounds change
// immediately.
highlight_view_->set_background(new LayerFillBackgroundPainter(
- base::WrapUnique(views::Painter::CreateRoundRectWith1PxBorderPainter(
+ views::Painter::CreateRoundRectWith1PxBorderPainter(
SkColorSetA(SK_ColorWHITE, 0x4D), SkColorSetA(SK_ColorWHITE, 0x33),
- kBackgroundCornerRadius))));
+ kBackgroundCornerRadius)));
highlight_view_->SetPaintToLayer(true);
highlight_view_->layer()->SetFillsBoundsOpaquely(false);
« no previous file with comments | « no previous file | ash/common/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698