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

Side by Side Diff: media/audio/linux/alsa_input.cc

Issue 12611030: Remove unused parameter to OnError() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits + rebase Created 7 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 unified diff | Download patch
« no previous file with comments | « media/audio/cras/cras_output_unittest.cc ('k') | media/audio/linux/alsa_output.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/linux/alsa_input.h" 5 #include "media/audio/linux/alsa_input.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 if (error < 0) { 330 if (error < 0) {
331 DLOG(WARNING) << "Unable to get volume for " << device_name_; 331 DLOG(WARNING) << "Unable to get volume for " << device_name_;
332 return 0.0; 332 return 0.0;
333 } 333 }
334 334
335 return static_cast<double>(current_volume); 335 return static_cast<double>(current_volume);
336 } 336 }
337 337
338 void AlsaPcmInputStream::HandleError(const char* method, int error) { 338 void AlsaPcmInputStream::HandleError(const char* method, int error) {
339 LOG(WARNING) << method << ": " << wrapper_->StrError(error); 339 LOG(WARNING) << method << ": " << wrapper_->StrError(error);
340 callback_->OnError(this, error); 340 callback_->OnError(this);
341 } 341 }
342 342
343 } // namespace media 343 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/cras/cras_output_unittest.cc ('k') | media/audio/linux/alsa_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698