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

Unified Diff: cc/blink/web_scrollbar_layer_impl.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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 | « cc/blink/web_scrollbar_layer_impl.h ('k') | cc/debug/benchmark_instrumentation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_scrollbar_layer_impl.cc
diff --git a/cc/blink/web_scrollbar_layer_impl.cc b/cc/blink/web_scrollbar_layer_impl.cc
index e31f5c6d59eac2a84c139a885830c5fc7713cfcc..7011d5fc91ef5f7f115f15b152b3feac2db34542 100644
--- a/cc/blink/web_scrollbar_layer_impl.cc
+++ b/cc/blink/web_scrollbar_layer_impl.cc
@@ -4,6 +4,7 @@
#include "cc/blink/web_scrollbar_layer_impl.h"
+#include "base/memory/ptr_util.h"
#include "cc/blink/scrollbar_impl.h"
#include "cc/blink/web_layer_impl.h"
#include "cc/layers/layer.h"
@@ -32,10 +33,10 @@ WebScrollbarLayerImpl::WebScrollbarLayerImpl(
blink::WebScrollbarThemeGeometry* geometry)
: layer_(new WebLayerImpl(PaintedScrollbarLayer::Create(
- scoped_ptr<cc::Scrollbar>(
- new ScrollbarImpl(make_scoped_ptr(scrollbar),
+ std::unique_ptr<cc::Scrollbar>(
+ new ScrollbarImpl(base::WrapUnique(scrollbar),
painter,
- make_scoped_ptr(geometry))),
+ base::WrapUnique(geometry))),
0))) {}
WebScrollbarLayerImpl::WebScrollbarLayerImpl(
« no previous file with comments | « cc/blink/web_scrollbar_layer_impl.h ('k') | cc/debug/benchmark_instrumentation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698