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

Unified Diff: examples/audio_play_test/play_wav.cc

Issue 1916233002: Mark ApplicationImpl::ConnectTo{Application,Service}() as deprecated. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « examples/audio_play_test/play_tone.cc ('k') | examples/authentication_demo/google_authentication_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/audio_play_test/play_wav.cc
diff --git a/examples/audio_play_test/play_wav.cc b/examples/audio_play_test/play_wav.cc
index b11f31f725d05070d45fb339c7ca19057db51b5d..581e48268751fc1aa12b33e3fa49f83d472a3028 100644
--- a/examples/audio_play_test/play_wav.cc
+++ b/examples/audio_play_test/play_wav.cc
@@ -157,12 +157,12 @@ const std::set<uint16_t> PlayWAVApp::VALID_BITS_PER_SAMPLES({
});
void PlayWAVApp::Initialize(ApplicationImpl* app) {
- app->ConnectToService("mojo:audio_server", &audio_server_);
+ app->ConnectToServiceDeprecated("mojo:audio_server", &audio_server_);
audio_server_.set_connection_error_handler([this]() {
OnConnectionError("audio_server");
});
- app->ConnectToService("mojo:network_service", &network_service_);
+ app->ConnectToServiceDeprecated("mojo:network_service", &network_service_);
audio_server_.set_connection_error_handler([this]() {
OnConnectionError("network_service");
});
« no previous file with comments | « examples/audio_play_test/play_tone.cc ('k') | examples/authentication_demo/google_authentication_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698