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

Side by Side Diff: services/shell/runner/host/out_of_process_native_runner.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/shell/runner/host/out_of_process_native_runner.h" 5 #include "services/shell/runner/host/out_of_process_native_runner.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 OutOfProcessNativeRunnerFactory::OutOfProcessNativeRunnerFactory( 63 OutOfProcessNativeRunnerFactory::OutOfProcessNativeRunnerFactory(
64 base::TaskRunner* launch_process_runner, 64 base::TaskRunner* launch_process_runner,
65 NativeRunnerDelegate* delegate) 65 NativeRunnerDelegate* delegate)
66 : launch_process_runner_(launch_process_runner), delegate_(delegate) {} 66 : launch_process_runner_(launch_process_runner), delegate_(delegate) {}
67 OutOfProcessNativeRunnerFactory::~OutOfProcessNativeRunnerFactory() {} 67 OutOfProcessNativeRunnerFactory::~OutOfProcessNativeRunnerFactory() {}
68 68
69 std::unique_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create( 69 std::unique_ptr<NativeRunner> OutOfProcessNativeRunnerFactory::Create(
70 const base::FilePath& app_path) { 70 const base::FilePath& app_path) {
71 return base::WrapUnique( 71 return base::MakeUnique<OutOfProcessNativeRunner>(launch_process_runner_,
72 new OutOfProcessNativeRunner(launch_process_runner_, delegate_)); 72 delegate_);
73 } 73 }
74 74
75 } // namespace shell 75 } // namespace shell
OLDNEW
« no previous file with comments | « services/shell/runner/host/in_process_native_runner.cc ('k') | services/shell/tests/connect/connect_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698