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

Unified Diff: services/shell/runner/host/in_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 side-by-side diff with in-line comments
Download patch
Index: services/shell/runner/host/in_process_native_runner.cc
diff --git a/services/shell/runner/host/in_process_native_runner.cc b/services/shell/runner/host/in_process_native_runner.cc
index 20f126da38f55696fa94ec1d78c8b741263d6103..cd38dcd0a2bdcd0dc30b4bf9c7c5593d443d91fb 100644
--- a/services/shell/runner/host/in_process_native_runner.cc
+++ b/services/shell/runner/host/in_process_native_runner.cc
@@ -86,8 +86,8 @@ std::unique_ptr<NativeRunner> InProcessNativeRunnerFactory::Create(
const base::FilePath& app_path) {
// Non-Mojo apps are always run in a new process.
if (!app_path.MatchesExtension(FILE_PATH_LITERAL(".library"))) {
- return base::WrapUnique(
- new OutOfProcessNativeRunner(launch_process_runner_, nullptr));
+ return base::MakeUnique<OutOfProcessNativeRunner>(launch_process_runner_,
+ nullptr);
}
return base::WrapUnique(new InProcessNativeRunner);
}
« no previous file with comments | « services/shell/runner/child/test_native_main.cc ('k') | services/shell/runner/host/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698