| 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
|
|
|