| 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_screenlock_state_handler.h" | 5 #include "chrome/browser/signin/easy_unlock_screenlock_state_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/chromeos/chromeos_utils.h" | 10 #include "chrome/browser/chromeos/chromeos_utils.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 default: | 62 default: |
| 63 return 0; | 63 return 0; |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 bool TooltipContainsDeviceType(EasyUnlockScreenlockStateHandler::State state) { | 67 bool TooltipContainsDeviceType(EasyUnlockScreenlockStateHandler::State state) { |
| 68 return state == EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED || | 68 return state == EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED || |
| 69 state == EasyUnlockScreenlockStateHandler::STATE_PHONE_UNLOCKABLE || | 69 state == EasyUnlockScreenlockStateHandler::STATE_PHONE_UNLOCKABLE || |
| 70 state == EasyUnlockScreenlockStateHandler::STATE_NO_BLUETOOTH || | 70 state == EasyUnlockScreenlockStateHandler::STATE_NO_BLUETOOTH || |
| 71 state == EasyUnlockScreenlockStateHandler::STATE_PHONE_UNSUPPORTED || | 71 state == EasyUnlockScreenlockStateHandler::STATE_PHONE_UNSUPPORTED || |
| 72 state == EasyUnlockScreenlockStateHandler::STATE_RSSI_TOO_LOW || |
| 72 state == EasyUnlockScreenlockStateHandler::STATE_TX_POWER_TOO_HIGH; | 73 state == EasyUnlockScreenlockStateHandler::STATE_TX_POWER_TOO_HIGH; |
| 73 } | 74 } |
| 74 | 75 |
| 75 } // namespace | 76 } // namespace |
| 76 | 77 |
| 77 | 78 |
| 78 EasyUnlockScreenlockStateHandler::EasyUnlockScreenlockStateHandler( | 79 EasyUnlockScreenlockStateHandler::EasyUnlockScreenlockStateHandler( |
| 79 const std::string& user_email, | 80 const std::string& user_email, |
| 80 HardlockState initial_hardlock_state, | 81 HardlockState initial_hardlock_state, |
| 81 ScreenlockBridge* screenlock_bridge) | 82 ScreenlockBridge* screenlock_bridge) |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 IDS_EASY_UNLOCK_SCREENLOCK_USER_POD_AUTH_VALUE)); | 311 IDS_EASY_UNLOCK_SCREENLOCK_USER_POD_AUTH_VALUE)); |
| 311 } | 312 } |
| 312 } else if (screenlock_bridge_->lock_handler()->GetAuthType(user_email_) != | 313 } else if (screenlock_bridge_->lock_handler()->GetAuthType(user_email_) != |
| 313 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD) { | 314 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD) { |
| 314 screenlock_bridge_->lock_handler()->SetAuthType( | 315 screenlock_bridge_->lock_handler()->SetAuthType( |
| 315 user_email_, | 316 user_email_, |
| 316 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, | 317 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, |
| 317 base::string16()); | 318 base::string16()); |
| 318 } | 319 } |
| 319 } | 320 } |
| OLD | NEW |