| 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..a7a05dc2679d7637557c77b91e1f3aaff815259f 100644
|
| --- a/components/profile_service/profile_app.cc
|
| +++ b/components/profile_service/profile_app.cc
|
| @@ -5,7 +5,6 @@
|
| #include "components/profile_service/profile_app.h"
|
|
|
| #include "base/lazy_instance.h"
|
| -#include "components/leveldb/leveldb_service_impl.h"
|
| #include "components/profile_service/profile_service_impl.h"
|
| #include "mojo/shell/public/cpp/connection.h"
|
|
|
| @@ -32,6 +31,8 @@ ProfileApp::~ProfileApp() {}
|
| void ProfileApp::AssociateMojoUserIDWithProfileDir(
|
| uint32_t user_id,
|
| const base::FilePath& profile_data_dir) {
|
| + LOG(ERROR) << "Registering user_id " << user_id << " to "
|
| + << profile_data_dir.value();
|
| g_user_id_to_data_dir.Get()[user_id] = profile_data_dir;
|
| }
|
|
|
| @@ -40,15 +41,14 @@ void ProfileApp::Initialize(mojo::Connector* connector,
|
| uint32_t id,
|
| uint32_t user_id) {
|
| tracing_.Initialize(connector, url);
|
| - leveldb_service_.reset(new leveldb::LevelDBServiceImpl);
|
|
|
| + LOG(ERROR) << "Received connection from " << user_id;
|
| auto it = g_user_id_to_data_dir.Get().find(user_id);
|
| DCHECK(it != g_user_id_to_data_dir.Get().end());
|
| profile_data_dir_ = it->second;
|
| }
|
|
|
| bool ProfileApp::AcceptConnection(mojo::Connection* connection) {
|
| - connection->AddInterface<leveldb::LevelDBService>(this);
|
| connection->AddInterface<ProfileService>(this);
|
| return true;
|
| }
|
| @@ -62,10 +62,4 @@ void ProfileApp::Create(mojo::Connection* connection,
|
| lock_table_.get());
|
| }
|
|
|
| -void ProfileApp::Create(
|
| - mojo::Connection* connection,
|
| - mojo::InterfaceRequest<leveldb::LevelDBService> request) {
|
| - leveldb_bindings_.AddBinding(leveldb_service_.get(), std::move(request));
|
| -}
|
| -
|
| } // namespace profile
|
|
|