| Index: components/resource_provider/resource_provider_app.cc
|
| diff --git a/components/resource_provider/resource_provider_app.cc b/components/resource_provider/resource_provider_app.cc
|
| index 43412393de356f01d880f3ce48ecdcc63c2b3a37..cd16a9889432c95bc516c82612aa3fc6952c4063 100644
|
| --- a/components/resource_provider/resource_provider_app.cc
|
| +++ b/components/resource_provider/resource_provider_app.cc
|
| @@ -22,15 +22,14 @@ ResourceProviderApp::~ResourceProviderApp() {
|
| }
|
|
|
| void ResourceProviderApp::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());
|
| }
|
|
|
| bool ResourceProviderApp::AcceptConnection(mojo::Connection* connection) {
|
| const base::FilePath app_path(
|
| - GetPathForApplicationName(connection->GetRemoteApplicationName()));
|
| + GetPathForApplicationName(connection->GetRemoteIdentity().name()));
|
| if (app_path.empty())
|
| return false; // The specified app has no resources.
|
|
|
| @@ -42,7 +41,7 @@ void ResourceProviderApp::Create(
|
| mojo::Connection* connection,
|
| mojo::InterfaceRequest<ResourceProvider> request) {
|
| const base::FilePath app_path(
|
| - GetPathForApplicationName(connection->GetRemoteApplicationName()));
|
| + GetPathForApplicationName(connection->GetRemoteIdentity().name()));
|
| // We validated path at AcceptConnection() time, so it should still
|
| // be valid.
|
| CHECK(!app_path.empty());
|
|
|