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

Unified Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 2702393003: [ChromeOS] Expose keyboard remapping to signin screen. (Closed)
Patch Set: . 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
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
index cf023763f334e81d2a5efb3dcdeb3b0cd3ce2f4e..228b61e1be5eff74f100455c9c0d03ab7d31db31 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -973,6 +973,7 @@ gfx::NativeWindow SigninScreenHandler::GetNativeWindow() {
void SigninScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterDictionaryPref(prefs::kUsersLRUInputMethod);
+ registry->RegisterStringPref(prefs::kFocusedPodUserId, std::string());
Alexander Alekseev 2017/02/22 00:41:22 Could you also explain the idea behind this? CL de
xdai1 2017/02/22 00:52:09 kFocusedPodUserId is used to track the current foc
Alexander Alekseev 2017/02/22 01:04:47 It seems to me that storing temporary (not statefu
xdai1 2017/02/22 01:42:16 Thanks. Done.
}
void SigninScreenHandler::OnCurrentScreenChanged(OobeScreen current_screen,
@@ -1430,6 +1431,9 @@ void SigninScreenHandler::HandleFocusPod(const AccountId& account_id) {
test_focus_pod_callback_.Run();
focused_pod_account_id_ = base::MakeUnique<AccountId>(account_id);
+ PrefService* const prefs = g_browser_process->local_state();
+ prefs->SetString(prefs::kFocusedPodUserId, account_id.GetGaiaId());
+ prefs->CommitPendingWrite();
const user_manager::User* user =
user_manager::UserManager::Get()->FindUser(account_id);
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698