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

Unified Diff: chromeos/dbus/audio_node.cc

Issue 1380103003: Store audio device's active state in preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix string format Created 4 years, 11 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 | « chromeos/dbus/audio_node.h ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/audio_node.cc
diff --git a/chromeos/dbus/audio_node.cc b/chromeos/dbus/audio_node.cc
index 17dd6979c036f56ec0736fb17b6709a8f6c7c1da..b1cb3b04e6818aeb673622cd44e27742a8a4308c 100644
--- a/chromeos/dbus/audio_node.cc
+++ b/chromeos/dbus/audio_node.cc
@@ -21,6 +21,7 @@ AudioNode::AudioNode()
AudioNode::AudioNode(bool is_input,
uint64_t id,
+ uint64_t stable_device_id,
std::string device_name,
std::string type,
std::string name,
@@ -28,6 +29,7 @@ AudioNode::AudioNode(bool is_input,
uint64_t plugged_time)
: is_input(is_input),
id(id),
+ stable_device_id(stable_device_id),
device_name(device_name),
type(type),
name(name),
@@ -44,9 +46,9 @@ std::string AudioNode::ToString() const {
base::StringAppendF(&result,
"id = 0x%" PRIx64 " ",
id);
- base::StringAppendF(&result,
- "device_name = %s ",
- device_name.c_str());
+ base::StringAppendF(&result, "stable_device_id = 0x%" PRIx64 " ",
+ stable_device_id);
+ base::StringAppendF(&result, "device_name = %s ", device_name.c_str());
base::StringAppendF(&result,
"type = %s ",
type.c_str());
« no previous file with comments | « chromeos/dbus/audio_node.h ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698