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

Unified Diff: cc/trees/threaded_channel_unittest.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/trees/threaded_channel.cc ('k') | cc/trees/tree_synchronizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/threaded_channel_unittest.cc
diff --git a/cc/trees/threaded_channel_unittest.cc b/cc/trees/threaded_channel_unittest.cc
index 81d28def59cb8241a41d80989020e067c798d794..08d532aaa9d57d2c8d5c9462dabc92b0391e6d61 100644
--- a/cc/trees/threaded_channel_unittest.cc
+++ b/cc/trees/threaded_channel_unittest.cc
@@ -5,6 +5,7 @@
#include "cc/trees/threaded_channel.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "cc/animation/animation_events.h"
#include "cc/test/layer_tree_test.h"
#include "cc/trees/single_thread_proxy.h"
@@ -243,7 +244,8 @@ class ThreadedChannelTestSetAnimationEvents : public ThreadedChannelTest {
void BeginChannelTest() override { PostOnImplThread(); }
void StartTestOnImplThread() override {
- scoped_ptr<AnimationEvents> events(make_scoped_ptr(new AnimationEvents));
+ std::unique_ptr<AnimationEvents> events(
+ base::WrapUnique(new AnimationEvents));
GetProxyImplForTest()->PostAnimationEventsToMainThreadOnImplThread(
std::move(events));
}
« no previous file with comments | « cc/trees/threaded_channel.cc ('k') | cc/trees/tree_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698