OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/login/oobe_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 AddScreenHandler(signin_screen_handler_); | 145 AddScreenHandler(signin_screen_handler_); |
146 | 146 |
147 DictionaryValue* localized_strings = new DictionaryValue(); | 147 DictionaryValue* localized_strings = new DictionaryValue(); |
148 GetLocalizedStrings(localized_strings); | 148 GetLocalizedStrings(localized_strings); |
149 | 149 |
150 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); | 150 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); |
151 // Set up the chrome://theme/ source, for Chrome logo. | 151 // Set up the chrome://theme/ source, for Chrome logo. |
152 ThemeSource* theme = new ThemeSource(profile); | 152 ThemeSource* theme = new ThemeSource(profile); |
153 profile->GetChromeURLDataManager()->AddDataSource(theme); | 153 profile->GetChromeURLDataManager()->AddDataSource(theme); |
154 | 154 |
155 // Set up the chrome://terms/ data source, for EULA content. | |
156 InitializeAboutDataSource(chrome::kChromeUITermsHost, profile); | |
157 | |
158 // Set up the chrome://oobe/ source. | 155 // Set up the chrome://oobe/ source. |
159 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings); | 156 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings); |
160 profile->GetChromeURLDataManager()->AddDataSource(html_source); | 157 profile->GetChromeURLDataManager()->AddDataSource(html_source); |
161 | 158 |
162 // Set up the chrome://userimage/ source. | 159 // Set up the chrome://userimage/ source. |
163 UserImageSource* user_image_source = new UserImageSource(); | 160 UserImageSource* user_image_source = new UserImageSource(); |
164 profile->GetChromeURLDataManager()->AddDataSource(user_image_source); | 161 profile->GetChromeURLDataManager()->AddDataSource(user_image_source); |
165 } | 162 } |
166 | 163 |
167 void OobeUI::ShowScreen(WizardScreen* screen) { | 164 void OobeUI::ShowScreen(WizardScreen* screen) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void OobeUI::ShowSigninScreen(SigninScreenHandlerDelegate* delegate) { | 229 void OobeUI::ShowSigninScreen(SigninScreenHandlerDelegate* delegate) { |
233 signin_screen_handler_->SetDelegate(delegate); | 230 signin_screen_handler_->SetDelegate(delegate); |
234 signin_screen_handler_->Show(core_handler_->show_oobe_ui()); | 231 signin_screen_handler_->Show(core_handler_->show_oobe_ui()); |
235 } | 232 } |
236 | 233 |
237 void OobeUI::OnLoginPromptVisible() { | 234 void OobeUI::OnLoginPromptVisible() { |
238 user_image_screen_actor_->CheckCameraPresence(); | 235 user_image_screen_actor_->CheckCameraPresence(); |
239 } | 236 } |
240 | 237 |
241 } // namespace chromeos | 238 } // namespace chromeos |
OLD | NEW |