| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/md_user_manager_ui.h" | 5 #include "chrome/browser/ui/webui/signin/md_user_manager_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 source->AddResourcePath("user_manager_pages.js", | 88 source->AddResourcePath("user_manager_pages.js", |
| 89 IDR_MD_USER_MANAGER_PAGES_JS); | 89 IDR_MD_USER_MANAGER_PAGES_JS); |
| 90 source->AddResourcePath("user_manager_tutorial.css", | 90 source->AddResourcePath("user_manager_tutorial.css", |
| 91 IDR_MD_USER_MANAGER_TUTORIAL_CSS); | 91 IDR_MD_USER_MANAGER_TUTORIAL_CSS); |
| 92 source->AddResourcePath("user_manager_tutorial.html", | 92 source->AddResourcePath("user_manager_tutorial.html", |
| 93 IDR_MD_USER_MANAGER_TUTORIAL_HTML); | 93 IDR_MD_USER_MANAGER_TUTORIAL_HTML); |
| 94 source->AddResourcePath("user_manager_tutorial.js", | 94 source->AddResourcePath("user_manager_tutorial.js", |
| 95 IDR_MD_USER_MANAGER_TUTORIAL_JS); | 95 IDR_MD_USER_MANAGER_TUTORIAL_JS); |
| 96 source->AddResourcePath("shared_styles.html", | 96 source->AddResourcePath("shared_styles.html", |
| 97 IDR_MD_USER_MANAGER_SHARED_STYLES_HTML); | 97 IDR_MD_USER_MANAGER_SHARED_STYLES_HTML); |
| 98 source->AddResourcePath("import_supervised_user.html", |
| 99 IDR_MD_IMPORT_SUPERVISED_USER_HTML); |
| 100 source->AddResourcePath("import_supervised_user.js", |
| 101 IDR_MD_IMPORT_SUPERVISED_USER_JS); |
| 98 | 102 |
| 99 source->SetDefaultResource(IDR_MD_USER_MANAGER_HTML); | 103 source->SetDefaultResource(IDR_MD_USER_MANAGER_HTML); |
| 100 | 104 |
| 101 return source; | 105 return source; |
| 102 } | 106 } |
| 103 | 107 |
| 104 void MDUserManagerUI::GetLocalizedStrings( | 108 void MDUserManagerUI::GetLocalizedStrings( |
| 105 base::DictionaryValue* localized_strings) { | 109 base::DictionaryValue* localized_strings) { |
| 106 user_manager_screen_handler_->GetLocalizedValues(localized_strings); | 110 user_manager_screen_handler_->GetLocalizedValues(localized_strings); |
| 107 signin_create_profile_handler_->GetLocalizedValues(localized_strings); | 111 signin_create_profile_handler_->GetLocalizedValues(localized_strings); |
| 112 #if defined(ENABLE_SUPERVISED_USERS) |
| 113 signin_supervised_user_import_handler_->GetLocalizedValues(localized_strings); |
| 114 #endif |
| 108 const std::string& app_locale = g_browser_process->GetApplicationLocale(); | 115 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
| 109 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); | 116 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); |
| 110 | 117 |
| 111 #if defined(GOOGLE_CHROME_BUILD) | 118 #if defined(GOOGLE_CHROME_BUILD) |
| 112 localized_strings->SetString("buildType", "chrome"); | 119 localized_strings->SetString("buildType", "chrome"); |
| 113 #else | 120 #else |
| 114 localized_strings->SetString("buildType", "chromium"); | 121 localized_strings->SetString("buildType", "chromium"); |
| 115 #endif | 122 #endif |
| 116 } | 123 } |
| OLD | NEW |