| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/browser/signin/easy_unlock_metrics.h" | 13 #include "chrome/browser/signin/easy_unlock_metrics.h" |
| 14 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 | 16 |
| 17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
| 18 #include "ash/common/system/chromeos/devicetype_utils.h" | 18 #include "ash/system/devicetype_utils.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 using proximity_auth::ScreenlockState; | 21 using proximity_auth::ScreenlockState; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 proximity_auth::ScreenlockBridge::UserPodCustomIcon GetIconForState( | 25 proximity_auth::ScreenlockBridge::UserPodCustomIcon GetIconForState( |
| 26 ScreenlockState state) { | 26 ScreenlockState state) { |
| 27 switch (state) { | 27 switch (state) { |
| 28 case ScreenlockState::NO_BLUETOOTH: | 28 case ScreenlockState::NO_BLUETOOTH: |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 IDS_EASY_UNLOCK_SCREENLOCK_USER_POD_AUTH_VALUE)); | 389 IDS_EASY_UNLOCK_SCREENLOCK_USER_POD_AUTH_VALUE)); |
| 390 } | 390 } |
| 391 } else if (existing_auth_type != | 391 } else if (existing_auth_type != |
| 392 proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD) { | 392 proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD) { |
| 393 screenlock_bridge_->lock_handler()->SetAuthType( | 393 screenlock_bridge_->lock_handler()->SetAuthType( |
| 394 account_id_, | 394 account_id_, |
| 395 proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, | 395 proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, |
| 396 base::string16()); | 396 base::string16()); |
| 397 } | 397 } |
| 398 } | 398 } |
| OLD | NEW |