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

Unified Diff: services/file/file_service.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
« no previous file with comments | « no previous file | services/shell/background/tests/background_shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/file/file_service.cc
diff --git a/services/file/file_service.cc b/services/file/file_service.cc
index 7a0c684b64d533e9b1761570daec52aa06279fc3..ecc330ddea3017ba9ec27daf797dd583e5a8d8eb 100644
--- a/services/file/file_service.cc
+++ b/services/file/file_service.cc
@@ -73,8 +73,8 @@ std::unique_ptr<shell::Service> CreateFileService(
scoped_refptr<base::SingleThreadTaskRunner> file_service_runner,
scoped_refptr<base::SingleThreadTaskRunner> leveldb_service_runner,
const base::Closure& quit_closure) {
- return base::WrapUnique(new FileService(
- std::move(file_service_runner), std::move(leveldb_service_runner)));
+ return base::MakeUnique<FileService>(std::move(file_service_runner),
+ std::move(leveldb_service_runner));
}
FileService::FileService(
« no previous file with comments | « no previous file | services/shell/background/tests/background_shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698