diff options
author | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 19:19:22 +0000 |
---|---|---|
committer | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 19:19:22 +0000 |
commit | ab3cc0dfa8b00edfbb27d0900485c245a6ca5e5d (patch) | |
tree | 632912f66b6060133a2736355f9988a27e5b2a7b /chromeos/dbus/cras_audio_client.h | |
parent | 6be1f2e3f8d47747309c41dffa15cba507f94218 (diff) | |
download | chromium_src-ab3cc0dfa8b00edfbb27d0900485c245a6ca5e5d.zip chromium_src-ab3cc0dfa8b00edfbb27d0900485c245a6ca5e5d.tar.gz chromium_src-ab3cc0dfa8b00edfbb27d0900485c245a6ca5e5d.tar.bz2 |
Reduce chrome cras dbus call logs during device rebooting. cras server won't start unitl after EmitLoginPromptVisible. Start cras log after it, so that we don't log the dbus failure due to cras call is made before it is started . Also a few other changes that should remove all other excess log seen during rebooting.
BUG=288177
TBR=mpcomplete
Review URL: https://chromiumcodereview.appspot.com/23460038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/cras_audio_client.h')
-rw-r--r-- | chromeos/dbus/cras_audio_client.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chromeos/dbus/cras_audio_client.h b/chromeos/dbus/cras_audio_client.h index 23063d8..6d5def2 100644 --- a/chromeos/dbus/cras_audio_client.h +++ b/chromeos/dbus/cras_audio_client.h @@ -63,11 +63,18 @@ class CHROMEOS_EXPORT CrasAudioClient : public DBusClient { // |success| which indicates whether or not the request succeeded. typedef base::Callback<void(const AudioNodeList&, bool)> GetNodesCallback; + // ErrorCallback is used for cras dbus method error response. It receives 2 + // arguments, |error_name| indicates the dbus error name, and |error_message| + // contains the detailed dbus error message. + typedef base::Callback<void(const std::string&, + const std::string&)> ErrorCallback; + // Gets the volume state, asynchronously. virtual void GetVolumeState(const GetVolumeStateCallback& callback) = 0; // Gets an array of audio input and output nodes. - virtual void GetNodes(const GetNodesCallback& callback) = 0; + virtual void GetNodes(const GetNodesCallback& callback, + const ErrorCallback& error_callback) = 0; // Sets output volume of the given |node_id| to |volume|, in the rage of // [0, 100]. |