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

Unified Diff: components/profile_service/profile_service_impl.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 | « components/profile_service/profile_service_impl.h ('k') | components/profile_service/public/cpp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/profile_service/profile_service_impl.cc
diff --git a/components/profile_service/profile_service_impl.cc b/components/profile_service/profile_service_impl.cc
deleted file mode 100644
index 8d24941707f39623feaa9ea0d07175efe8eb5e65..0000000000000000000000000000000000000000
--- a/components/profile_service/profile_service_impl.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// 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 "base/files/file.h"
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/files/scoped_temp_dir.h"
-#include "base/strings/utf_string_conversions.h"
-#include "components/filesystem/directory_impl.h"
-#include "components/filesystem/lock_table.h"
-#include "components/filesystem/public/interfaces/types.mojom.h"
-#include "services/shell/public/cpp/connection.h"
-#include "services/shell/public/cpp/message_loop_ref.h"
-
-namespace profile {
-
-ProfileServiceImpl::ProfileServiceImpl(
- const base::FilePath& base_profile_dir,
- const scoped_refptr<filesystem::LockTable>& lock_table)
- : lock_table_(lock_table), path_(base_profile_dir) {
- base::CreateDirectory(path_);
-}
-
-ProfileServiceImpl::~ProfileServiceImpl() {}
-
-void ProfileServiceImpl::GetDirectory(filesystem::DirectoryRequest request,
- const GetDirectoryCallback& callback) {
- new filesystem::DirectoryImpl(std::move(request),
- path_,
- scoped_ptr<base::ScopedTempDir>(),
- lock_table_);
- 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.
- base::FilePath subdir = path_.Append(
-#if defined(OS_WIN)
- base::UTF8ToWide(sub_directory_path.To<std::string>()));
-#else
- sub_directory_path.To<std::string>());
-#endif
- base::File::Error error;
- if (!base::CreateDirectoryAndGetError(subdir, &error)) {
- callback.Run(static_cast<filesystem::FileError>(error));
- return;
- }
-
- new filesystem::DirectoryImpl(std::move(request), subdir,
- scoped_ptr<base::ScopedTempDir>(), lock_table_);
- callback.Run(filesystem::FileError::OK);
-}
-
-} // namespace profile
« no previous file with comments | « components/profile_service/profile_service_impl.h ('k') | components/profile_service/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698