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

Unified Diff: content/browser/renderer_host/media/audio_output_authorization_handler.h

Issue 2869733005: Convert some audio code to OnceCallback. (Closed)
Patch Set: Rebase, comments on unretained. Created 3 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
Index: content/browser/renderer_host/media/audio_output_authorization_handler.h
diff --git a/content/browser/renderer_host/media/audio_output_authorization_handler.h b/content/browser/renderer_host/media/audio_output_authorization_handler.h
index be56e14ccaf08e61771be7efd2728eef266d5c07..fb5d69c8d2929abc3b1f9091740ec7a9ca1078d9 100644
--- a/content/browser/renderer_host/media/audio_output_authorization_handler.h
+++ b/content/browser/renderer_host/media/audio_output_authorization_handler.h
@@ -36,12 +36,11 @@ class CONTENT_EXPORT AudioOutputAuthorizationHandler {
// also has the default audio parameters for the device, and the id for the
// device, which is needed to open a stream for the device. This id is not
// hashed, so it must be hashed before sending it to the renderer.
- // TODO(maxmorin): Change to OnceCallback once base:: code is ready for it.
using AuthorizationCompletedCallback =
- base::Callback<void(media::OutputDeviceStatus status,
- bool should_send_id,
- const media::AudioParameters& params,
- const std::string& raw_device_id)>;
+ base::OnceCallback<void(media::OutputDeviceStatus status,
+ bool should_send_id,
+ const media::AudioParameters& params,
+ const std::string& raw_device_id)>;
AudioOutputAuthorizationHandler(media::AudioSystem* audio_system,
MediaStreamManager* media_stream_manager,

Powered by Google App Engine
This is Rietveld 408576698