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

Unified Diff: cc/tiles/tile_manager_unittest.cc

Issue 2258833002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/tiles/software_image_decode_controller.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index 61cdc0cc4765dfa1d6604d269e236f22c4bfa041..5cb954fd41459669def103cf049cbeb7b12f206d 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1498,9 +1498,9 @@ class TileManagerTest : public TestLayerTreeHostBase {
SharedBitmapManager* shared_bitmap_manager,
TaskGraphRunner* task_graph_runner,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) override {
- return base::WrapUnique(new MockLayerTreeHostImpl(
+ return base::MakeUnique<MockLayerTreeHostImpl>(
settings, task_runner_provider, shared_bitmap_manager,
- task_graph_runner, gpu_memory_buffer_manager));
+ task_graph_runner, gpu_memory_buffer_manager);
}
// By default use software compositing (no context provider).
@@ -1665,7 +1665,7 @@ TEST_F(TileManagerTest, LowResHasNoImage) {
class ActivationTasksDoNotBlockReadyToDrawTest : public TileManagerTest {
protected:
std::unique_ptr<TaskGraphRunner> CreateTaskGraphRunner() override {
- return base::WrapUnique(new SynchronousTaskGraphRunner());
+ return base::MakeUnique<SynchronousTaskGraphRunner>();
}
std::unique_ptr<OutputSurface> CreateOutputSurface() override {
« no previous file with comments | « cc/tiles/software_image_decode_controller.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698