Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4151)

Unified Diff: chrome/browser/chromeos/preferences.cc

Issue 2697413003: [Chrome OS] Expose keyboard auto repeat delay/interval to login screen. (Closed)
Patch Set: Address xiyuan@ and alemate@'s comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/preferences.cc
diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
index df889bd380f703a720c3aab68cbae2359d63262e..d9e1b5e98385897e771cf1a2a1a62c50ca4956ea 100644
--- a/chrome/browser/chromeos/preferences.cc
+++ b/chrome/browser/chromeos/preferences.cc
@@ -622,6 +622,9 @@ void Preferences::ApplyPreferences(ApplyReason reason,
input_method::InputMethodManager::Get()
->GetImeKeyboard()
->SetAutoRepeatEnabled(enabled);
+
+ user_manager::known_user::SetBooleanPref(
+ user_->GetAccountId(), prefs::kLanguageXkbAutoRepeatEnabled, enabled);
}
}
if (reason != REASON_PREF_CHANGED ||
@@ -786,6 +789,13 @@ void Preferences::UpdateAutoRepeatRate() {
input_method::InputMethodManager::Get()
->GetImeKeyboard()
->SetAutoRepeatRate(rate);
+
+ user_manager::known_user::SetIntegerPref(user_->GetAccountId(),
+ prefs::kLanguageXkbAutoRepeatDelay,
+ rate.initial_delay_in_ms);
+ user_manager::known_user::SetIntegerPref(
+ user_->GetAccountId(), prefs::kLanguageXkbAutoRepeatInterval,
+ rate.repeat_interval_in_ms);
}
void Preferences::OnTouchHudProjectionToggled(bool enabled) {

Powered by Google App Engine
This is Rietveld 408576698