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

Unified Diff: components/profile_service/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 | « components/profile_service/user_id_map.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/profile_service/user_id_map.cc
diff --git a/components/profile_service/user_id_map.cc b/components/profile_service/user_id_map.cc
deleted file mode 100644
index a5e54e42a437ea8f29eb4470a4ef63ddc2fdbc7a..0000000000000000000000000000000000000000
--- a/components/profile_service/user_id_map.cc
+++ /dev/null
@@ -1,29 +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/user_id_map.h"
-
-#include <map>
-
-#include "base/lazy_instance.h"
-
-namespace profile {
-
-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;
-}
-
-base::FilePath GetProfileDirForUserID(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
« no previous file with comments | « components/profile_service/user_id_map.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698