| 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 "chrome/browser/signin/easy_unlock_service_signin_chromeos.h" | 5 #include "chrome/browser/signin/easy_unlock_service_signin_chromeos.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 if (!data) | 131 if (!data) |
| 132 return NULL; | 132 return NULL; |
| 133 return &data->remote_devices_value; | 133 return &data->remote_devices_value; |
| 134 } | 134 } |
| 135 | 135 |
| 136 void EasyUnlockServiceSignin::SetRemoteDevices( | 136 void EasyUnlockServiceSignin::SetRemoteDevices( |
| 137 const base::ListValue& devices) { | 137 const base::ListValue& devices) { |
| 138 NOTREACHED(); | 138 NOTREACHED(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 void EasyUnlockServiceSignin::ClearRemoteDevices() { | |
| 142 NOTREACHED(); | |
| 143 } | |
| 144 | |
| 145 void EasyUnlockServiceSignin::RunTurnOffFlow() { | 141 void EasyUnlockServiceSignin::RunTurnOffFlow() { |
| 146 NOTREACHED(); | 142 NOTREACHED(); |
| 147 } | 143 } |
| 148 | 144 |
| 149 void EasyUnlockServiceSignin::ResetTurnOffFlow() { | 145 void EasyUnlockServiceSignin::ResetTurnOffFlow() { |
| 150 NOTREACHED(); | 146 NOTREACHED(); |
| 151 } | 147 } |
| 152 | 148 |
| 153 EasyUnlockService::TurnOffFlowStatus | 149 EasyUnlockService::TurnOffFlowStatus |
| 154 EasyUnlockServiceSignin::GetTurnOffFlowStatus() const { | 150 EasyUnlockServiceSignin::GetTurnOffFlowStatus() const { |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 return NULL; | 384 return NULL; |
| 389 | 385 |
| 390 std::map<std::string, UserData*>::const_iterator it = | 386 std::map<std::string, UserData*>::const_iterator it = |
| 391 user_data_.find(user_id_); | 387 user_data_.find(user_id_); |
| 392 if (it == user_data_.end()) | 388 if (it == user_data_.end()) |
| 393 return NULL; | 389 return NULL; |
| 394 if (it->second->state != USER_DATA_STATE_LOADED) | 390 if (it->second->state != USER_DATA_STATE_LOADED) |
| 395 return NULL; | 391 return NULL; |
| 396 return it->second; | 392 return it->second; |
| 397 } | 393 } |
| OLD | NEW |