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

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

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 years, 4 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Set up the chrome://terms/ data source, for EULA content. 169 // Set up the chrome://terms/ data source, for EULA content.
170 AboutUIHTMLSource* about_source = 170 AboutUIHTMLSource* about_source =
171 new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile); 171 new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile);
172 ChromeURLDataManager::AddDataSource(profile, about_source); 172 ChromeURLDataManager::AddDataSource(profile, about_source);
173 173
174 // Set up the chrome://oobe/ source. 174 // Set up the chrome://oobe/ source.
175 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings); 175 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings);
176 ChromeURLDataManager::AddDataSource(profile, html_source); 176 ChromeURLDataManager::AddDataSource(profile, html_source);
177 177
178 // Set up the chrome://userimage/ source. 178 // Set up the chrome://userimage/ source.
179 options2::UserImageSource* user_image_source = 179 options::UserImageSource* user_image_source =
180 new options2::UserImageSource(); 180 new options::UserImageSource();
181 ChromeURLDataManager::AddDataSource(profile, user_image_source); 181 ChromeURLDataManager::AddDataSource(profile, user_image_source);
182 182
183 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableNewOobe)) { 183 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableNewOobe)) {
184 // Set up the chrome://wallpaper/ source. 184 // Set up the chrome://wallpaper/ source.
185 chromeos::options2::WallpaperImageSource* wallpaper_image_source = 185 chromeos::options::WallpaperImageSource* wallpaper_image_source =
186 new chromeos::options2::WallpaperImageSource(); 186 new chromeos::options::WallpaperImageSource();
187 ChromeURLDataManager::AddDataSource(profile, wallpaper_image_source); 187 ChromeURLDataManager::AddDataSource(profile, wallpaper_image_source);
188 } 188 }
189 } 189 }
190 190
191 OobeUI::~OobeUI() { 191 OobeUI::~OobeUI() {
192 } 192 }
193 193
194 void OobeUI::ShowScreen(WizardScreen* screen) { 194 void OobeUI::ShowScreen(WizardScreen* screen) {
195 screen->Show(); 195 screen->Show();
196 } 196 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 void OobeUI::ResetSigninScreenHandlerDelegate() { 281 void OobeUI::ResetSigninScreenHandlerDelegate() {
282 signin_screen_handler_->SetDelegate(NULL); 282 signin_screen_handler_->SetDelegate(NULL);
283 } 283 }
284 284
285 void OobeUI::OnLoginPromptVisible() { 285 void OobeUI::OnLoginPromptVisible() {
286 user_image_screen_actor_->CheckCameraPresence(); 286 user_image_screen_actor_->CheckCameraPresence();
287 } 287 }
288 288
289 } // namespace chromeos 289 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc ('k') | chrome/browser/ui/webui/chromeos/proxy_settings_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698