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

Unified Diff: media/audio/sounds/audio_stream_handler.cc

Issue 655713003: Standardize usage of virtual/override/final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « media/audio/simple_sources.h ('k') | media/audio/sounds/sounds_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sounds/audio_stream_handler.cc
diff --git a/media/audio/sounds/audio_stream_handler.cc b/media/audio/sounds/audio_stream_handler.cc
index e57612ed11fda470fa136b1a4b92280a01aad565..ac9c87bcfaf1b98d0560727c545766e2ffae054f 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -43,7 +43,7 @@ class AudioStreamHandler::AudioStreamContainer
delayed_stop_posted_(false),
wav_audio_(wav_audio) {}
- virtual ~AudioStreamContainer() {
+ ~AudioStreamContainer() override {
DCHECK(AudioManager::Get()->GetTaskRunner()->BelongsToCurrentThread());
}
@@ -104,8 +104,7 @@ class AudioStreamHandler::AudioStreamContainer
private:
// AudioOutputStream::AudioSourceCallback overrides:
// Following methods could be called from *ANY* thread.
- virtual int OnMoreData(AudioBus* dest,
- uint32 /* total_bytes_delay */) override {
+ int OnMoreData(AudioBus* dest, uint32 /* total_bytes_delay */) override {
base::AutoLock al(state_lock_);
size_t bytes_written = 0;
@@ -124,7 +123,7 @@ class AudioStreamHandler::AudioStreamContainer
return dest->frames();
}
- virtual void OnError(AudioOutputStream* /* stream */) override {
+ void OnError(AudioOutputStream* /* stream */) override {
LOG(ERROR) << "Error during system sound reproduction.";
}
« no previous file with comments | « media/audio/simple_sources.h ('k') | media/audio/sounds/sounds_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698