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

Unified Diff: components/profile_service/profile_app.cc

Issue 1769163002: Add a instance groups to Connect(), and introduce an Identity struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 5be0fd9991cfbe98c91e9e21740bb71afeb54df1..27491db5e910d27946721e9031860a493591c71b 100644
--- a/components/profile_service/profile_app.cc
+++ b/components/profile_service/profile_app.cc
@@ -36,13 +36,12 @@ void ProfileApp::AssociateMojoUserIDWithProfileDir(
}
void ProfileApp::Initialize(mojo::Connector* connector,
- const std::string& url,
- const std::string& user_id,
+ const mojo::Identity& identity,
uint32_t id) {
- tracing_.Initialize(connector, url);
+ tracing_.Initialize(connector, identity.name());
leveldb_service_.reset(new leveldb::LevelDBServiceImpl);
- auto it = g_user_id_to_data_dir.Get().find(user_id);
+ auto it = g_user_id_to_data_dir.Get().find(identity.user_id());
DCHECK(it != g_user_id_to_data_dir.Get().end());
profile_data_dir_ = it->second;
}
« 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