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

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: Created 5 years, 2 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
Index: chromeos/dbus/audio_node.cc
diff --git a/chromeos/dbus/audio_node.cc b/chromeos/dbus/audio_node.cc
index c29ffb8753ad94e881388699aaafad9c1a248a67..2eb28700a97e0ed4fd39351eff1599beba17934a 100644
--- a/chromeos/dbus/audio_node.cc
+++ b/chromeos/dbus/audio_node.cc
@@ -19,6 +19,7 @@ AudioNode::AudioNode()
AudioNode::AudioNode(bool is_input,
uint64 id,
+ uint64 stable_device_id,
std::string device_name,
std::string type,
std::string name,
@@ -26,6 +27,7 @@ AudioNode::AudioNode(bool is_input,
uint64 plugged_time)
: is_input(is_input),
id(id),
+ stable_device_id(stable_device_id),
device_name(device_name),
type(type),
name(name),
@@ -44,6 +46,9 @@ std::string AudioNode::ToString() const {
"id = 0x%" PRIx64 " ",
id);
base::StringAppendF(&result,
+ "stable_device_id = 0x%" PRIx64 " ",
+ stable_device_id);
+ base::StringAppendF(&result,
"device_name = %s ",
device_name.c_str());
base::StringAppendF(&result,

Powered by Google App Engine
This is Rietveld 408576698