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

Side by Side Diff: services/ui/public/cpp/tests/window_server_shelltest_base.cc

Issue 2259823003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/public/cpp/tests/window_server_shelltest_base.h" 5 #include "services/ui/public/cpp/tests/window_server_shelltest_base.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 WindowServerServiceTestBase::WindowServerServiceTestBase() 49 WindowServerServiceTestBase::WindowServerServiceTestBase()
50 : ServiceTest(kTestAppName) { 50 : ServiceTest(kTestAppName) {
51 EnsureCommandLineSwitch(switches::kUseTestConfig); 51 EnsureCommandLineSwitch(switches::kUseTestConfig);
52 EnsureCommandLineSwitch(::switches::kOverrideUseGLWithOSMesaForTests); 52 EnsureCommandLineSwitch(::switches::kOverrideUseGLWithOSMesaForTests);
53 } 53 }
54 54
55 WindowServerServiceTestBase::~WindowServerServiceTestBase() {} 55 WindowServerServiceTestBase::~WindowServerServiceTestBase() {}
56 56
57 std::unique_ptr<shell::Service> 57 std::unique_ptr<shell::Service>
58 WindowServerServiceTestBase::CreateService() { 58 WindowServerServiceTestBase::CreateService() {
59 return base::WrapUnique(new WindowServerServiceTestClient(this)); 59 return base::MakeUnique<WindowServerServiceTestClient>(this);
60 } 60 }
61 61
62 } // namespace ui 62 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/gpu/display_compositor/compositor_frame_sink_factory_impl.cc ('k') | services/ui/public/cpp/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698