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

Unified Diff: services/user/user_id_map.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_id_map.h ('k') | services/user/user_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/user/user_id_map.cc
diff --git a/components/profile_service/user_id_map.cc b/services/user/user_id_map.cc
similarity index 57%
rename from components/profile_service/user_id_map.cc
rename to services/user/user_id_map.cc
index a5e54e42a437ea8f29eb4470a4ef63ddc2fdbc7a..0195f96b432f8160fb0a83385b7bb4ca08921d45 100644
--- a/components/profile_service/user_id_map.cc
+++ b/services/user/user_id_map.cc
@@ -2,28 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/profile_service/user_id_map.h"
+#include "services/user/user_id_map.h"
#include <map>
#include "base/lazy_instance.h"
-namespace profile {
+namespace user_service {
namespace {
base::LazyInstance<std::map<std::string, base::FilePath>>
g_user_id_to_data_dir = LAZY_INSTANCE_INITIALIZER;
} // namespace
-void AssociateMojoUserIDWithProfileDir(const std::string& user_id,
- const base::FilePath& profile_data_dir) {
- g_user_id_to_data_dir.Get()[user_id] = profile_data_dir;
+void AssociateMojoUserIDWithUserDir(const std::string& user_id,
+ const base::FilePath& user_dir) {
+ g_user_id_to_data_dir.Get()[user_id] = user_dir;
}
-base::FilePath GetProfileDirForUserID(const std::string& user_id) {
+base::FilePath GetUserDirForUserID(const std::string& user_id) {
auto it = g_user_id_to_data_dir.Get().find(user_id);
DCHECK(it != g_user_id_to_data_dir.Get().end());
return it->second;
}
-} // namespace profile
+} // namespace user_service
« no previous file with comments | « services/user/user_id_map.h ('k') | services/user/user_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698