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

Side by Side Diff: media/audio/audio_output_controller.cc

Issue 920963003: Moved scoped_histogram_timer to the main histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove gyp entries for old unit test in media/ Created 5 years, 10 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/audio_input_controller.cc ('k') | media/base/BUILD.gn » ('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/audio_output_controller.h" 5 #include "media/audio/audio_output_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
11 #include "base/threading/platform_thread.h" 11 #include "base/threading/platform_thread.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "media/base/scoped_histogram_timer.h"
16 15
17 using base::TimeDelta; 16 using base::TimeDelta;
18 17
19 namespace media { 18 namespace media {
20 19
21 AudioOutputController::AudioOutputController( 20 AudioOutputController::AudioOutputController(
22 AudioManager* audio_manager, 21 AudioManager* audio_manager,
23 EventHandler* handler, 22 EventHandler* handler,
24 const AudioParameters& params, 23 const AudioParameters& params,
25 const std::string& output_device_id, 24 const std::string& output_device_id,
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 DCHECK(message_loop_->BelongsToCurrentThread()); 409 DCHECK(message_loop_->BelongsToCurrentThread());
411 410
412 // If we should be playing and we haven't, that's a wedge. 411 // If we should be playing and we haven't, that's a wedge.
413 if (state_ == kPlaying) { 412 if (state_ == kPlaying) {
414 UMA_HISTOGRAM_BOOLEAN("Media.AudioOutputControllerPlaybackStartupSuccess", 413 UMA_HISTOGRAM_BOOLEAN("Media.AudioOutputControllerPlaybackStartupSuccess",
415 base::AtomicRefCountIsOne(&on_more_io_data_called_)); 414 base::AtomicRefCountIsOne(&on_more_io_data_called_));
416 } 415 }
417 } 416 }
418 417
419 } // namespace media 418 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698