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

Unified Diff: services/user/user_service.cc

Issue 1879233002: Move components\profile_service to services\user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move3
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/user/user_service.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/components/profile_service/profile_service_impl.cc b/services/user/user_service.cc
similarity index 68%
rename from components/profile_service/profile_service_impl.cc
rename to services/user/user_service.cc
index 8d24941707f39623feaa9ea0d07175efe8eb5e65..eb8a1be2f0bed1c46c28343329ce0f18d06f57b6 100644
--- a/components/profile_service/profile_service_impl.cc
+++ b/services/user/user_service.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/profile_service/profile_service_impl.h"
+#include "services/user/user_service.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
@@ -15,19 +15,18 @@
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/message_loop_ref.h"
-namespace profile {
+namespace user_service {
-ProfileServiceImpl::ProfileServiceImpl(
- const base::FilePath& base_profile_dir,
- const scoped_refptr<filesystem::LockTable>& lock_table)
- : lock_table_(lock_table), path_(base_profile_dir) {
+UserService::UserService(const base::FilePath& base_user_dir,
+ const scoped_refptr<filesystem::LockTable>& lock_table)
+ : lock_table_(lock_table), path_(base_user_dir) {
base::CreateDirectory(path_);
}
-ProfileServiceImpl::~ProfileServiceImpl() {}
+UserService::~UserService() {}
-void ProfileServiceImpl::GetDirectory(filesystem::DirectoryRequest request,
- const GetDirectoryCallback& callback) {
+void UserService::GetDirectory(filesystem::DirectoryRequest request,
+ const GetDirectoryCallback& callback) {
new filesystem::DirectoryImpl(std::move(request),
path_,
scoped_ptr<base::ScopedTempDir>(),
@@ -35,11 +34,10 @@ void ProfileServiceImpl::GetDirectory(filesystem::DirectoryRequest request,
callback.Run();
}
-void ProfileServiceImpl::GetSubDirectory(
- const mojo::String& sub_directory_path,
- filesystem::DirectoryRequest request,
- const GetSubDirectoryCallback& callback) {
- // Ensure that we've made |subdirectory| recursively under our profile.
+void UserService::GetSubDirectory(const mojo::String& sub_directory_path,
+ filesystem::DirectoryRequest request,
+ const GetSubDirectoryCallback& callback) {
+ // Ensure that we've made |subdirectory| recursively under our user dir.
base::FilePath subdir = path_.Append(
#if defined(OS_WIN)
base::UTF8ToWide(sub_directory_path.To<std::string>()));
@@ -57,4 +55,4 @@ void ProfileServiceImpl::GetSubDirectory(
callback.Run(filesystem::FileError::OK);
}
-} // namespace profile
+} // namespace user_service
« no previous file with comments | « services/user/user_service.h ('k') | services/user/user_shell_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698