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

Unified Diff: services/media/audio/audio_server_app.cc

Issue 1981513002: ApplicationConnection devolution, part 2.2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « services/media/audio/audio_server_app.h ('k') | services/media/factory_service/factory_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/audio/audio_server_app.cc
diff --git a/services/media/audio/audio_server_app.cc b/services/media/audio/audio_server_app.cc
index c59df0f900b8f28e3d1c4b5f53b361978f2520d8..7eba44eba6543882584c592e0263bac04d5c3d40 100644
--- a/services/media/audio/audio_server_app.cc
+++ b/services/media/audio/audio_server_app.cc
@@ -9,8 +9,6 @@
#include "mojo/public/cpp/application/application_impl.h"
#include "services/media/audio/audio_server_app.h"
-#define VERBOSE 0
-
namespace mojo {
namespace media {
namespace audio {
@@ -24,18 +22,17 @@ void AudioServerApp::Initialize(ApplicationImpl* app) {
bool AudioServerApp::ConfigureIncomingConnection(
ApplicationConnection* connection) {
- connection->AddService(this);
+ connection->GetServiceProviderImpl().AddService<AudioServer>(
+ [this](const ConnectionContext& connection_context,
+ InterfaceRequest<AudioServer> audio_server_request) {
+ bindings_.AddBinding(&server_impl_, audio_server_request.Pass());
+ });
return true;
}
void AudioServerApp::Quit() {
}
-void AudioServerApp::Create(const ConnectionContext& connection_context,
- InterfaceRequest<AudioServer> request) {
- bindings_.AddBinding(&server_impl_, request.Pass());
-}
-
} // namespace audio
} // namespace media
} // namespace mojo
« no previous file with comments | « services/media/audio/audio_server_app.h ('k') | services/media/factory_service/factory_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698