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

Unified Diff: services/user/user_service.cc

Issue 1910673002: Convert //services from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/tracing/tracing_app.h ('k') | services/user/user_shell_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/user/user_service.cc
diff --git a/services/user/user_service.cc b/services/user/user_service.cc
index eb8a1be2f0bed1c46c28343329ce0f18d06f57b6..36292d31faec3b637011460368045615d734b140 100644
--- a/services/user/user_service.cc
+++ b/services/user/user_service.cc
@@ -27,9 +27,8 @@ UserService::~UserService() {}
void UserService::GetDirectory(filesystem::DirectoryRequest request,
const GetDirectoryCallback& callback) {
- new filesystem::DirectoryImpl(std::move(request),
- path_,
- scoped_ptr<base::ScopedTempDir>(),
+ new filesystem::DirectoryImpl(std::move(request), path_,
+ std::unique_ptr<base::ScopedTempDir>(),
lock_table_);
callback.Run();
}
@@ -51,7 +50,8 @@ void UserService::GetSubDirectory(const mojo::String& sub_directory_path,
}
new filesystem::DirectoryImpl(std::move(request), subdir,
- scoped_ptr<base::ScopedTempDir>(), lock_table_);
+ std::unique_ptr<base::ScopedTempDir>(),
+ lock_table_);
callback.Run(filesystem::FileError::OK);
}
« no previous file with comments | « services/tracing/tracing_app.h ('k') | services/user/user_shell_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698