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

Unified Diff: components/policy/core/common/remote_commands/remote_command_job.cc

Issue 2733903002: Remote set volume command (Closed)
Patch Set: Nits + mute/unmute logic Created 3 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/remote_commands/remote_command_job.cc
diff --git a/components/policy/core/common/remote_commands/remote_command_job.cc b/components/policy/core/common/remote_commands/remote_command_job.cc
index c32381ce228135c9670d32384cb7dbd99e9b0c68..bf43a599d479c8addf8f07864808dcee618a4bd5 100644
--- a/components/policy/core/common/remote_commands/remote_command_job.cc
+++ b/components/policy/core/common/remote_commands/remote_command_job.cc
@@ -54,8 +54,11 @@ bool RemoteCommandJob::Init(base::TimeTicks now,
issued_time_ = now;
}
- if (!ParseCommandPayload(command.payload()))
+ if (!ParseCommandPayload(command.payload())) {
+ SYSLOG(ERROR) << "Unable to parse command payload for type "
+ << command.type() << ": " << command.payload();
return false;
+ }
switch (command.type()) {
case em::RemoteCommand_Type_COMMAND_ECHO_TEST: {
@@ -72,6 +75,11 @@ bool RemoteCommandJob::Init(base::TimeTicks now,
<< " initialized.";
break;
}
+ case em::RemoteCommand_Type_DEVICE_SET_VOLUME: {
+ SYSLOG(INFO) << "Remote set volume command " << unique_id_
+ << " initialized.";
+ break;
+ }
}
status_ = NOT_STARTED;
return true;

Powered by Google App Engine
This is Rietveld 408576698