OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/proximity_auth/remote_status_update.h" | 5 #include "components/proximity_auth/remote_status_update.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } else if (trust_agent_state == kTrustAgentDisabled) { | 86 } else if (trust_agent_state == kTrustAgentDisabled) { |
87 parsed_update->trust_agent_state = TRUST_AGENT_DISABLED; | 87 parsed_update->trust_agent_state = TRUST_AGENT_DISABLED; |
88 } else if (trust_agent_state == kTrustAgentUnsupported) { | 88 } else if (trust_agent_state == kTrustAgentUnsupported) { |
89 parsed_update->trust_agent_state = TRUST_AGENT_UNSUPPORTED; | 89 parsed_update->trust_agent_state = TRUST_AGENT_UNSUPPORTED; |
90 } else { | 90 } else { |
91 VLOG(1) << "Unable to parse remote status update: invalid trust agent " | 91 VLOG(1) << "Unable to parse remote status update: invalid trust agent " |
92 << "state: '" << trust_agent_state << "'."; | 92 << "state: '" << trust_agent_state << "'."; |
93 return scoped_ptr<RemoteStatusUpdate>(); | 93 return scoped_ptr<RemoteStatusUpdate>(); |
94 } | 94 } |
95 | 95 |
96 return parsed_update.Pass(); | 96 return parsed_update; |
97 } | 97 } |
98 | 98 |
99 } // namespace proximity_auth | 99 } // namespace proximity_auth |
OLD | NEW |