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

Unified Diff: media/audio/audio_input_device.cc

Issue 1175003004: Change audio IPC enums from kConstantStyle to MACRO_STYLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 6 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/audio_input_device.h ('k') | media/audio/audio_input_ipc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_device.cc
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
index 0b41b347faf83f81acac035ebef75a1984a85241..9f46b55a1b9f365facd573b5f0783cd15f9923af 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -151,7 +151,7 @@ void AudioInputDevice::OnVolume(double volume) {
}
void AudioInputDevice::OnStateChanged(
- AudioInputIPCDelegate::State state) {
+ AudioInputIPCDelegateState state) {
DCHECK(task_runner()->BelongsToCurrentThread());
// Do nothing if the stream has been closed.
@@ -161,14 +161,14 @@ void AudioInputDevice::OnStateChanged(
// TODO(miu): Clean-up inconsistent and incomplete handling here.
// http://crbug.com/180640
switch (state) {
- case AudioInputIPCDelegate::kStopped:
+ case AUDIO_INPUT_IPC_DELEGATE_STATE_STOPPED:
ShutDownOnIOThread();
break;
- case AudioInputIPCDelegate::kRecording:
+ case AUDIO_INPUT_IPC_DELEGATE_STATE_RECORDING:
NOTIMPLEMENTED();
break;
- case AudioInputIPCDelegate::kError:
- DLOG(WARNING) << "AudioInputDevice::OnStateChanged(kError)";
+ case AUDIO_INPUT_IPC_DELEGATE_STATE_ERROR:
+ DLOG(WARNING) << "AudioInputDevice::OnStateChanged(ERROR)";
// Don't dereference the callback object if the audio thread
// is stopped or stopping. That could mean that the callback
// object has been deleted.
« no previous file with comments | « media/audio/audio_input_device.h ('k') | media/audio/audio_input_ipc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698