chrome_views_delegate_chromeos.cc revision 558790d6acca3451cf3a6b497803a5f07d0bec58
1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "chrome/browser/ui/views/chrome_views_delegate.h" 6 7#include "base/time/time.h" 8#include "chrome/browser/chromeos/login/user_manager.h" 9#include "chrome/browser/chromeos/system/input_device_settings.h" 10#include "chromeos/chromeos_constants.h" 11 12base::TimeDelta 13ChromeViewsDelegate::GetDefaultTextfieldObscuredRevealDuration() { 14 // Enable password echo on login screen when the keyboard driven flag is set. 15 if (chromeos::UserManager::IsInitialized() && 16 !chromeos::UserManager::Get()->IsUserLoggedIn() && 17 chromeos::system::keyboard_settings::ForceKeyboardDrivenUINavigation()) { 18 return base::TimeDelta::FromSeconds(1); 19 } 20 21 return base::TimeDelta(); 22} 23