| 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/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/browser/chromeos/chromeos_utils.h" | 11 #include "chrome/browser/chromeos/chromeos_utils.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 size_t kIconSize = 27u; | 18 size_t kIconSize = 27u; |
| 19 size_t kOpaqueIconOpacity = 50u; | 19 size_t kOpaqueIconOpacity = 50u; |
| 20 size_t kSpinnerResourceWidth = 1215u; | 20 size_t kSpinnerResourceWidth = 1215u; |
| 21 size_t kSpinnerIntervalMs = 50u; | 21 size_t kSpinnerIntervalMs = 50u; |
| 22 | 22 |
| 23 std::string GetIconURLForState(EasyUnlockScreenlockStateHandler::State state) { | 23 std::string GetIconURLForState(EasyUnlockScreenlockStateHandler::State state) { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 l10n_util::GetStringUTF16( | 227 l10n_util::GetStringUTF16( |
| 228 IDS_EASY_UNLOCK_SCREENLOCK_USER_POD_AUTH_VALUE)); | 228 IDS_EASY_UNLOCK_SCREENLOCK_USER_POD_AUTH_VALUE)); |
| 229 } else if (screenlock_bridge_->lock_handler()->GetAuthType(user_email_) != | 229 } else if (screenlock_bridge_->lock_handler()->GetAuthType(user_email_) != |
| 230 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD) { | 230 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD) { |
| 231 screenlock_bridge_->lock_handler()->SetAuthType( | 231 screenlock_bridge_->lock_handler()->SetAuthType( |
| 232 user_email_, | 232 user_email_, |
| 233 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, | 233 ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, |
| 234 base::string16()); | 234 base::string16()); |
| 235 } | 235 } |
| 236 } | 236 } |
| OLD | NEW |