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

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

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fixes Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 10 matching lines...) Expand all
21 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 21 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
22 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 22 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
23 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" 23 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h"
24 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h" 24 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h"
25 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h" 25 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h"
26 #include "chrome/browser/ui/webui/chromeos/login/network_dropdown_handler.h" 26 #include "chrome/browser/ui/webui/chromeos/login/network_dropdown_handler.h"
27 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" 27 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h"
28 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" 28 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
29 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h" 29 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h"
30 #include "chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h" 30 #include "chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h"
31 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" 31 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h"
32 #include "chrome/browser/ui/webui/theme_source.h" 32 #include "chrome/browser/ui/webui/theme_source.h"
33 #include "chrome/common/jstemplate_builder.h" 33 #include "chrome/common/jstemplate_builder.h"
34 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
35 #include "content/public/browser/web_contents.h" 35 #include "content/public/browser/web_contents.h"
36 #include "content/public/browser/web_ui.h" 36 #include "content/public/browser/web_ui.h"
37 #include "grit/browser_resources.h" 37 #include "grit/browser_resources.h"
38 #include "ui/base/resource/resource_bundle.h" 38 #include "ui/base/resource/resource_bundle.h"
39 39
40 using content::WebContents; 40 using content::WebContents;
41 41
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Set up the chrome://terms/ data source, for EULA content. 162 // Set up the chrome://terms/ data source, for EULA content.
163 AboutUIHTMLSource* about_source = 163 AboutUIHTMLSource* about_source =
164 new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile); 164 new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile);
165 profile->GetChromeURLDataManager()->AddDataSource(about_source); 165 profile->GetChromeURLDataManager()->AddDataSource(about_source);
166 166
167 // Set up the chrome://oobe/ source. 167 // Set up the chrome://oobe/ source.
168 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings); 168 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings);
169 profile->GetChromeURLDataManager()->AddDataSource(html_source); 169 profile->GetChromeURLDataManager()->AddDataSource(html_source);
170 170
171 // Set up the chrome://userimage/ source. 171 // Set up the chrome://userimage/ source.
172 UserImageSource* user_image_source = new UserImageSource(); 172 options2::UserImageSource* user_image_source = new options2::UserImageSource() ;
173 profile->GetChromeURLDataManager()->AddDataSource(user_image_source); 173 profile->GetChromeURLDataManager()->AddDataSource(user_image_source);
174 } 174 }
175 175
176 OobeUI::~OobeUI() { 176 OobeUI::~OobeUI() {
177 } 177 }
178 178
179 void OobeUI::ShowScreen(WizardScreen* screen) { 179 void OobeUI::ShowScreen(WizardScreen* screen) {
180 screen->Show(); 180 screen->Show();
181 } 181 }
182 182
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 void OobeUI::ResetSigninScreenHandlerDelegate() { 246 void OobeUI::ResetSigninScreenHandlerDelegate() {
247 signin_screen_handler_->SetDelegate(NULL); 247 signin_screen_handler_->SetDelegate(NULL);
248 } 248 }
249 249
250 void OobeUI::OnLoginPromptVisible() { 250 void OobeUI::OnLoginPromptVisible() {
251 user_image_screen_actor_->CheckCameraPresence(); 251 user_image_screen_actor_->CheckCameraPresence();
252 } 252 }
253 253
254 } // namespace chromeos 254 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698