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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Rebase. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/ui/webui/signin/user_manager_screen_handler.h" 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 web_ui()->RegisterMessageCallback("loginUIStateChanged", kDoNothingCallback); 756 web_ui()->RegisterMessageCallback("loginUIStateChanged", kDoNothingCallback);
757 web_ui()->RegisterMessageCallback("hideCaptivePortal", kDoNothingCallback); 757 web_ui()->RegisterMessageCallback("hideCaptivePortal", kDoNothingCallback);
758 web_ui()->RegisterMessageCallback("getTouchViewState", kDoNothingCallback); 758 web_ui()->RegisterMessageCallback("getTouchViewState", kDoNothingCallback);
759 // Unused callbacks from display_manager.js 759 // Unused callbacks from display_manager.js
760 web_ui()->RegisterMessageCallback("showAddUser", kDoNothingCallback); 760 web_ui()->RegisterMessageCallback("showAddUser", kDoNothingCallback);
761 web_ui()->RegisterMessageCallback("loadWallpaper", kDoNothingCallback); 761 web_ui()->RegisterMessageCallback("loadWallpaper", kDoNothingCallback);
762 web_ui()->RegisterMessageCallback("updateCurrentScreen", kDoNothingCallback); 762 web_ui()->RegisterMessageCallback("updateCurrentScreen", kDoNothingCallback);
763 web_ui()->RegisterMessageCallback("loginVisible", kDoNothingCallback); 763 web_ui()->RegisterMessageCallback("loginVisible", kDoNothingCallback);
764 // Unused callbacks from user_pod_row.js 764 // Unused callbacks from user_pod_row.js
765 web_ui()->RegisterMessageCallback("focusPod", kDoNothingCallback); 765 web_ui()->RegisterMessageCallback("focusPod", kDoNothingCallback);
766 web_ui()->RegisterMessageCallback("noPodFocused", kDoNothingCallback);
766 } 767 }
767 768
768 void UserManagerScreenHandler::GetLocalizedValues( 769 void UserManagerScreenHandler::GetLocalizedValues(
769 base::DictionaryValue* localized_strings) { 770 base::DictionaryValue* localized_strings) {
770 // For Control Bar. 771 // For Control Bar.
771 localized_strings->SetString("signedIn", 772 localized_strings->SetString("signedIn",
772 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_ACTIVE_USER)); 773 l10n_util::GetStringUTF16(IDS_SCREEN_LOCK_ACTIVE_USER));
773 localized_strings->SetString("addUser", 774 localized_strings->SetString("addUser",
774 l10n_util::GetStringUTF16(IDS_ADD_USER_BUTTON)); 775 l10n_util::GetStringUTF16(IDS_ADD_USER_BUTTON));
775 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL)); 776 localized_strings->SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL));
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 Profile* profile, Profile::CreateStatus profile_create_status) { 1055 Profile* profile, Profile::CreateStatus profile_create_status) {
1055 Browser* browser = chrome::FindAnyBrowser(profile, false); 1056 Browser* browser = chrome::FindAnyBrowser(profile, false);
1056 if (browser && browser->window()) { 1057 if (browser && browser->window()) {
1057 OnBrowserWindowReady(browser); 1058 OnBrowserWindowReady(browser);
1058 } else { 1059 } else {
1059 registrar_.Add(this, 1060 registrar_.Add(this,
1060 chrome::NOTIFICATION_BROWSER_WINDOW_READY, 1061 chrome::NOTIFICATION_BROWSER_WINDOW_READY,
1061 content::NotificationService::AllSources()); 1062 content::NotificationService::AllSources());
1062 } 1063 }
1063 } 1064 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698