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

Unified Diff: cc/test/proxy_impl_for_test.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/test/proxy_impl_for_test.h ('k') | cc/test/proxy_main_for_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/proxy_impl_for_test.cc
diff --git a/cc/test/proxy_impl_for_test.cc b/cc/test/proxy_impl_for_test.cc
index da0848ba3bb5e4fa1ae9749f83cf5d51bec7a206..c6fa58623792790b542e5c3727e73d75a4f476df 100644
--- a/cc/test/proxy_impl_for_test.cc
+++ b/cc/test/proxy_impl_for_test.cc
@@ -4,14 +4,16 @@
#include "cc/test/proxy_impl_for_test.h"
+#include "base/memory/ptr_util.h"
+
namespace cc {
-scoped_ptr<ProxyImplForTest> ProxyImplForTest::Create(
+std::unique_ptr<ProxyImplForTest> ProxyImplForTest::Create(
TestHooks* test_hooks,
ChannelImpl* channel_impl,
LayerTreeHost* layer_tree_host,
TaskRunnerProvider* task_runner_provider,
- scoped_ptr<BeginFrameSource> external_begin_frame_source) {
- return make_scoped_ptr(new ProxyImplForTest(
+ std::unique_ptr<BeginFrameSource> external_begin_frame_source) {
+ return base::WrapUnique(new ProxyImplForTest(
test_hooks, channel_impl, layer_tree_host, task_runner_provider,
std::move(external_begin_frame_source)));
}
@@ -29,7 +31,7 @@ ProxyImplForTest::ProxyImplForTest(
ChannelImpl* channel_impl,
LayerTreeHost* layer_tree_host,
TaskRunnerProvider* task_runner_provider,
- scoped_ptr<BeginFrameSource> external_begin_frame_source)
+ std::unique_ptr<BeginFrameSource> external_begin_frame_source)
: ProxyImpl(channel_impl,
layer_tree_host,
task_runner_provider,
« no previous file with comments | « cc/test/proxy_impl_for_test.h ('k') | cc/test/proxy_main_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698