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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 source->AddResourcePath("control_bar.html", IDR_MD_CONTROL_BAR_HTML); | 56 source->AddResourcePath("control_bar.html", IDR_MD_CONTROL_BAR_HTML); |
57 source->AddResourcePath("control_bar.js", IDR_MD_CONTROL_BAR_JS); | 57 source->AddResourcePath("control_bar.js", IDR_MD_CONTROL_BAR_JS); |
58 source->AddResourcePath("create_profile.css", IDR_MD_CREATE_PROFILE_CSS); | 58 source->AddResourcePath("create_profile.css", IDR_MD_CREATE_PROFILE_CSS); |
59 source->AddResourcePath("create_profile.html", IDR_MD_CREATE_PROFILE_HTML); | 59 source->AddResourcePath("create_profile.html", IDR_MD_CREATE_PROFILE_HTML); |
60 source->AddResourcePath("create_profile.js", IDR_MD_CREATE_PROFILE_JS); | 60 source->AddResourcePath("create_profile.js", IDR_MD_CREATE_PROFILE_JS); |
61 source->AddResourcePath("profile_browser_proxy.html", | 61 source->AddResourcePath("profile_browser_proxy.html", |
62 IDR_MD_PROFILE_BROWSER_PROXY_HTML); | 62 IDR_MD_PROFILE_BROWSER_PROXY_HTML); |
63 source->AddResourcePath("profile_browser_proxy.js", | 63 source->AddResourcePath("profile_browser_proxy.js", |
64 IDR_MD_PROFILE_BROWSER_PROXY_JS); | 64 IDR_MD_PROFILE_BROWSER_PROXY_JS); |
65 source->AddResourcePath("strings.html", IDR_MD_USER_MANAGER_STRINGS_HTML); | 65 source->AddResourcePath("strings.html", IDR_MD_USER_MANAGER_STRINGS_HTML); |
66 source->AddResourcePath("user_manager.css", IDR_MD_USER_MANAGER_CSS); | 66 source->AddResourcePath("supervised_user_learn_more.css", |
| 67 IDR_MD_SUPERVISED_USER_LEARN_MORE_CSS); |
| 68 source->AddResourcePath("supervised_user_learn_more.html", |
| 69 IDR_MD_SUPERVISED_USER_LEARN_MORE_HTML); |
| 70 source->AddResourcePath("supervised_user_learn_more.js", |
| 71 IDR_MD_SUPERVISED_USER_LEARN_MORE_JS); |
| 72 source->AddResourcePath("user_manager_styles.html", |
| 73 IDR_MD_USER_MANAGER_STYLES_HTML); |
67 source->AddResourcePath("user_manager.js", IDR_MD_USER_MANAGER_JS); | 74 source->AddResourcePath("user_manager.js", IDR_MD_USER_MANAGER_JS); |
68 source->AddResourcePath("user_manager_pages.css", | 75 source->AddResourcePath("user_manager_pages.css", |
69 IDR_MD_USER_MANAGER_PAGES_CSS); | 76 IDR_MD_USER_MANAGER_PAGES_CSS); |
70 source->AddResourcePath("user_manager_pages.html", | 77 source->AddResourcePath("user_manager_pages.html", |
71 IDR_MD_USER_MANAGER_PAGES_HTML); | 78 IDR_MD_USER_MANAGER_PAGES_HTML); |
72 source->AddResourcePath("user_manager_pages.js", | 79 source->AddResourcePath("user_manager_pages.js", |
73 IDR_MD_USER_MANAGER_PAGES_JS); | 80 IDR_MD_USER_MANAGER_PAGES_JS); |
| 81 source->AddResourcePath("user_manager_tutorial.css", |
| 82 IDR_MD_USER_MANAGER_TUTORIAL_CSS); |
| 83 source->AddResourcePath("user_manager_tutorial.html", |
| 84 IDR_MD_USER_MANAGER_TUTORIAL_HTML); |
| 85 source->AddResourcePath("user_manager_tutorial.js", |
| 86 IDR_MD_USER_MANAGER_TUTORIAL_JS); |
| 87 source->AddResourcePath("shared_styles.html", |
| 88 IDR_MD_USER_MANAGER_SHARED_STYLES_HTML); |
74 | 89 |
75 source->SetDefaultResource(IDR_MD_USER_MANAGER_HTML); | 90 source->SetDefaultResource(IDR_MD_USER_MANAGER_HTML); |
76 | 91 |
77 return source; | 92 return source; |
78 } | 93 } |
79 | 94 |
80 void MDUserManagerUI::GetLocalizedStrings( | 95 void MDUserManagerUI::GetLocalizedStrings( |
81 base::DictionaryValue* localized_strings) { | 96 base::DictionaryValue* localized_strings) { |
82 user_manager_screen_handler_->GetLocalizedValues(localized_strings); | 97 user_manager_screen_handler_->GetLocalizedValues(localized_strings); |
83 signin_create_profile_handler_->GetLocalizedValues(localized_strings); | 98 signin_create_profile_handler_->GetLocalizedValues(localized_strings); |
84 const std::string& app_locale = g_browser_process->GetApplicationLocale(); | 99 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
85 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); | 100 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); |
86 | 101 |
87 #if defined(GOOGLE_CHROME_BUILD) | 102 #if defined(GOOGLE_CHROME_BUILD) |
88 localized_strings->SetString("buildType", "chrome"); | 103 localized_strings->SetString("buildType", "chrome"); |
89 #else | 104 #else |
90 localized_strings->SetString("buildType", "chromium"); | 105 localized_strings->SetString("buildType", "chromium"); |
91 #endif | 106 #endif |
92 } | 107 } |
OLD | NEW |