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.
5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
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"
13 ChromeViewsDelegate::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);
21 return base::TimeDelta();