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

Unified Diff: components/profile_service/profile_app.cc

Issue 1770533002: Change userid from a uint32_t to a string guid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@33connector
Patch Set: . Created 4 years, 9 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_app.h ('k') | components/resource_provider/resource_provider_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/profile_service/profile_app.cc
diff --git a/components/profile_service/profile_app.cc b/components/profile_service/profile_app.cc
index 6ec8c0d14ed65d5bed93dff5cd33b1a66f91d131..5be0fd9991cfbe98c91e9e21740bb71afeb54df1 100644
--- a/components/profile_service/profile_app.cc
+++ b/components/profile_service/profile_app.cc
@@ -13,8 +13,8 @@ namespace profile {
namespace {
-base::LazyInstance<std::map<uint32_t, base::FilePath>> g_user_id_to_data_dir =
- LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<std::map<std::string, base::FilePath>>
+ g_user_id_to_data_dir = LAZY_INSTANCE_INITIALIZER;
} // namespace
@@ -30,15 +30,15 @@ ProfileApp::~ProfileApp() {}
// static
void ProfileApp::AssociateMojoUserIDWithProfileDir(
- uint32_t user_id,
+ const std::string& user_id,
const base::FilePath& profile_data_dir) {
g_user_id_to_data_dir.Get()[user_id] = profile_data_dir;
}
void ProfileApp::Initialize(mojo::Connector* connector,
const std::string& url,
- uint32_t id,
- uint32_t user_id) {
+ const std::string& user_id,
+ uint32_t id) {
tracing_.Initialize(connector, url);
leveldb_service_.reset(new leveldb::LevelDBServiceImpl);
@@ -54,7 +54,7 @@ bool ProfileApp::AcceptConnection(mojo::Connection* connection) {
}
void ProfileApp::Create(mojo::Connection* connection,
- mojo::InterfaceRequest<ProfileService> request) {
+ ProfileServiceRequest request) {
// No, we need one of these per connection.
new ProfileServiceImpl(connection,
std::move(request),
@@ -62,9 +62,8 @@ void ProfileApp::Create(mojo::Connection* connection,
lock_table_.get());
}
-void ProfileApp::Create(
- mojo::Connection* connection,
- mojo::InterfaceRequest<leveldb::LevelDBService> request) {
+void ProfileApp::Create(mojo::Connection* connection,
+ leveldb::LevelDBServiceRequest request) {
leveldb_bindings_.AddBinding(leveldb_service_.get(), std::move(request));
}
« no previous file with comments | « components/profile_service/profile_app.h ('k') | components/resource_provider/resource_provider_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698