| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 void EasyUnlockServiceSignin::SetRemoteDevices( | 133 void EasyUnlockServiceSignin::SetRemoteDevices( |
| 134 const base::ListValue& devices) { | 134 const base::ListValue& devices) { |
| 135 NOTREACHED(); | 135 NOTREACHED(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void EasyUnlockServiceSignin::ClearRemoteDevices() { | 138 void EasyUnlockServiceSignin::ClearRemoteDevices() { |
| 139 NOTREACHED(); | 139 NOTREACHED(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void EasyUnlockServiceSignin::SetHardlocked(bool value) { |
| 143 // TODO(tbarzic): Make this work. |
| 144 SetScreenlockHardlockedState(value); |
| 145 } |
| 146 |
| 147 bool EasyUnlockServiceSignin::IsHardlocked() const { |
| 148 return false; |
| 149 } |
| 150 |
| 142 void EasyUnlockServiceSignin::RunTurnOffFlow() { | 151 void EasyUnlockServiceSignin::RunTurnOffFlow() { |
| 143 NOTREACHED(); | 152 NOTREACHED(); |
| 144 } | 153 } |
| 145 | 154 |
| 146 void EasyUnlockServiceSignin::ResetTurnOffFlow() { | 155 void EasyUnlockServiceSignin::ResetTurnOffFlow() { |
| 147 NOTREACHED(); | 156 NOTREACHED(); |
| 148 } | 157 } |
| 149 | 158 |
| 150 EasyUnlockService::TurnOffFlowStatus | 159 EasyUnlockService::TurnOffFlowStatus |
| 151 EasyUnlockServiceSignin::GetTurnOffFlowStatus() const { | 160 EasyUnlockServiceSignin::GetTurnOffFlowStatus() const { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 return NULL; | 292 return NULL; |
| 284 | 293 |
| 285 std::map<std::string, UserData*>::const_iterator it = | 294 std::map<std::string, UserData*>::const_iterator it = |
| 286 user_data_.find(user_id_); | 295 user_data_.find(user_id_); |
| 287 if (it == user_data_.end()) | 296 if (it == user_data_.end()) |
| 288 return NULL; | 297 return NULL; |
| 289 if (it->second->state != USER_DATA_STATE_LOADED) | 298 if (it->second->state != USER_DATA_STATE_LOADED) |
| 290 return NULL; | 299 return NULL; |
| 291 return it->second; | 300 return it->second; |
| 292 } | 301 } |
| OLD | NEW |