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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 break; | 238 break; |
239 case EasyUnlockScreenlockStateHandler::STATE_PHONE_UNSUPPORTED: | 239 case EasyUnlockScreenlockStateHandler::STATE_PHONE_UNSUPPORTED: |
240 event = chromeos::PASSWORD_SIGN_IN_PHONE_UNSUPPORTED; | 240 event = chromeos::PASSWORD_SIGN_IN_PHONE_UNSUPPORTED; |
241 break; | 241 break; |
242 case EasyUnlockScreenlockStateHandler::STATE_RSSI_TOO_LOW: | 242 case EasyUnlockScreenlockStateHandler::STATE_RSSI_TOO_LOW: |
243 event = chromeos::PASSWORD_SIGN_IN_RSSI_TOO_LOW; | 243 event = chromeos::PASSWORD_SIGN_IN_RSSI_TOO_LOW; |
244 break; | 244 break; |
245 case EasyUnlockScreenlockStateHandler::STATE_TX_POWER_TOO_HIGH: | 245 case EasyUnlockScreenlockStateHandler::STATE_TX_POWER_TOO_HIGH: |
246 event = chromeos::PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH; | 246 event = chromeos::PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH; |
247 break; | 247 break; |
| 248 case EasyUnlockScreenlockStateHandler:: |
| 249 STATE_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH: |
| 250 event = chromeos::PASSWORD_SIGN_IN_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH; |
| 251 break; |
248 case EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED: | 252 case EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED: |
249 event = chromeos::PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE; | 253 event = chromeos::PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE; |
250 break; | 254 break; |
251 } | 255 } |
252 } | 256 } |
253 | 257 |
254 chromeos::RecordEasyUnlockLoginEvent(event); | 258 chromeos::RecordEasyUnlockLoginEvent(event); |
255 DVLOG(1) << "EasySignIn password login event, event=" << event; | 259 DVLOG(1) << "EasySignIn password login event, event=" << event; |
256 } | 260 } |
257 | 261 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 return NULL; | 388 return NULL; |
385 | 389 |
386 std::map<std::string, UserData*>::const_iterator it = | 390 std::map<std::string, UserData*>::const_iterator it = |
387 user_data_.find(user_id_); | 391 user_data_.find(user_id_); |
388 if (it == user_data_.end()) | 392 if (it == user_data_.end()) |
389 return NULL; | 393 return NULL; |
390 if (it->second->state != USER_DATA_STATE_LOADED) | 394 if (it->second->state != USER_DATA_STATE_LOADED) |
391 return NULL; | 395 return NULL; |
392 return it->second; | 396 return it->second; |
393 } | 397 } |
OLD | NEW |