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

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

Issue 2874303003: Fork PIN keyboard assets and create additional flag for lock screen (Closed)
Patch Set: Address comments Created 3 years, 7 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/resources/chromeos/quick_unlock/md_pin_keyboard.js ('k') | chromeos/chromeos_switches.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/oobe_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
index 4497720f2fc1b5934d25c51ee87fe8315c6163f7..33bdf4c3c1d362457e6a15ab98ae4fb04c774a85 100644
--- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
@@ -142,19 +142,29 @@ content::WebUIDataSource* CreateOobeUIDataSource(
IDR_CUSTOM_ELEMENTS_OOBE_HTML);
source->AddResourcePath(kCustomElementsJSPath, IDR_CUSTOM_ELEMENTS_OOBE_JS);
} else if (display_type == OobeUI::kLockDisplay) {
- source->SetDefaultResource(IDR_LOCK_HTML);
- source->AddResourcePath(kLockJSPath, IDR_LOCK_JS);
+ if (command_line->HasSwitch(chromeos::switches::kShowNonViewMdLogin)) {
+ source->SetDefaultResource(IDR_MD_LOCK_HTML);
+ source->AddResourcePath(kLockJSPath, IDR_MD_LOCK_JS);
+ source->AddResourcePath(kCustomElementsPinKeyboardHTMLPath,
+ IDR_MD_CUSTOM_ELEMENTS_PIN_KEYBOARD_HTML);
+ source->AddResourcePath(kCustomElementsPinKeyboardJSPath,
+ IDR_MD_CUSTOM_ELEMENTS_PIN_KEYBOARD_JS);
+ } else {
+ source->SetDefaultResource(IDR_LOCK_HTML);
+ source->AddResourcePath(kLockJSPath, IDR_LOCK_JS);
+ source->AddResourcePath(kCustomElementsPinKeyboardHTMLPath,
+ IDR_CUSTOM_ELEMENTS_PIN_KEYBOARD_HTML);
+ source->AddResourcePath(kCustomElementsPinKeyboardJSPath,
+ IDR_CUSTOM_ELEMENTS_PIN_KEYBOARD_JS);
+ }
source->AddResourcePath(kCustomElementsHTMLPath,
IDR_CUSTOM_ELEMENTS_LOCK_HTML);
source->AddResourcePath(kCustomElementsJSPath, IDR_CUSTOM_ELEMENTS_LOCK_JS);
- source->AddResourcePath(kCustomElementsPinKeyboardHTMLPath,
- IDR_CUSTOM_ELEMENTS_PIN_KEYBOARD_HTML);
- source->AddResourcePath(kCustomElementsPinKeyboardJSPath,
- IDR_CUSTOM_ELEMENTS_PIN_KEYBOARD_JS);
source->AddResourcePath(kCustomElementsUserPodHTMLPath,
IDR_CUSTOM_ELEMENTS_USER_POD_HTML);
} else {
- if (command_line->HasSwitch(chromeos::switches::kShowMdLogin)) {
+ if (command_line->HasSwitch(chromeos::switches::kShowMdLogin) ||
+ command_line->HasSwitch(chromeos::switches::kShowNonViewMdLogin)) {
source->SetDefaultResource(IDR_MD_LOGIN_HTML);
source->AddResourcePath(kLoginJSPath, IDR_MD_LOGIN_JS);
} else {
« no previous file with comments | « chrome/browser/resources/chromeos/quick_unlock/md_pin_keyboard.js ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698