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

Side by Side Diff: components/proximity_auth/remote_status_update.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/proximity_auth/remote_device_loader_unittest.cc ('k') | components/proximity_auth/screenlock_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698