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

Unified Diff: services/ui/ws/frame_generator_unittest.cc

Issue 2365753003: mus ws: Move 'reset(new' to base::MakeUnique. (Closed)
Patch Set: Merge with tot Created 4 years, 3 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 | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator_unittest.cc
diff --git a/services/ui/ws/frame_generator_unittest.cc b/services/ui/ws/frame_generator_unittest.cc
index 2f39b3d794615b8510da5a746c709a89cf00b74b..7e9417a8dbecf1f421f40cc528d3515cf489f9d8 100644
--- a/services/ui/ws/frame_generator_unittest.cc
+++ b/services/ui/ws/frame_generator_unittest.cc
@@ -70,11 +70,11 @@ void FrameGeneratorTest::DrawWindowTree(cc::RenderPass* pass) {
void FrameGeneratorTest::SetUp() {
testing::Test::SetUp();
- frame_generator_delegate_.reset(new TestFrameGeneratorDelegate(
- base::MakeUnique<ServerWindow>(&window_delegate_, WindowId())));
+ frame_generator_delegate_ = base::MakeUnique<TestFrameGeneratorDelegate>(
+ base::MakeUnique<ServerWindow>(&window_delegate_, WindowId()));
PlatformDisplayInitParams init_params;
- frame_generator_.reset(new FrameGenerator(frame_generator_delegate_.get(),
- init_params.surfaces_state));
+ frame_generator_ = base::MakeUnique<FrameGenerator>(
+ frame_generator_delegate_.get(), init_params.surfaces_state);
InitWindow(root_window());
}
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/gpu_service_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698