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

Unified Diff: media/audio/pulse/audio_manager_pulse.h

Issue 2784433002: Ensures that audio tasks cannot run after AudioManager is deleted. (Closed)
Patch Set: fixes content_browsertests and content_unittests Created 3 years, 9 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: media/audio/pulse/audio_manager_pulse.h
diff --git a/media/audio/pulse/audio_manager_pulse.h b/media/audio/pulse/audio_manager_pulse.h
index 662c4614a8ce97effbb19885ae7b82e8db50e2dc..bdf9e7e5bced30ccd237096bd4e025f1ed6562e1 100644
--- a/media/audio/pulse/audio_manager_pulse.h
+++ b/media/audio/pulse/audio_manager_pulse.h
@@ -21,10 +21,12 @@ class MEDIA_EXPORT AudioManagerPulse : public AudioManagerBase {
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
AudioLogFactory* audio_log_factory);
+ ~AudioManagerPulse() override;
bool Init();
// Implementation of AudioManager.
+ void Shutdown() override;
bool HasAudioOutputDevices() override;
bool HasAudioInputDevices() override;
void ShowAudioInputSettings() override;
@@ -52,8 +54,6 @@ class MEDIA_EXPORT AudioManagerPulse : public AudioManagerBase {
const LogCallback& log_callback) override;
protected:
- ~AudioManagerPulse() override;
-
AudioParameters GetPreferredOutputStreamParameters(
const std::string& output_device_id,
const AudioParameters& input_params) override;

Powered by Google App Engine
This is Rietveld 408576698