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

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

Issue 941973003: New OOBE implementation skeleton using WUG toolkit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No explicit, gn format. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
index 5efc7eef465e5171354c39e303926143a4107a96..4b95d6e45f6858551a5edbfc041d60150dd5f209 100644
--- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
@@ -74,8 +74,7 @@ const char* kKnownDisplayTypes[] = {
OobeUI::kLoginDisplay,
OobeUI::kLockDisplay,
OobeUI::kUserAddingDisplay,
- OobeUI::kAppLaunchSplashDisplay,
- OobeUI::kNewOobeDisplay
+ OobeUI::kAppLaunchSplashDisplay
};
const char kStringsJSPath[] = "strings.js";
@@ -90,24 +89,10 @@ const char kEnrollmentHTMLPath[] = "enrollment.html";
const char kEnrollmentCSSPath[] = "enrollment.css";
const char kEnrollmentJSPath[] = "enrollment.js";
-content::WebUIDataSource* CreateNewOobeUIDataSource(
- const base::DictionaryValue& localized_strings) {
- content::WebUIDataSource* source =
- content::WebUIDataSource::Create(chrome::kChromeUIOobeHost);
- source->AddLocalizedStrings(localized_strings);
- source->SetJsonPath(kStringsJSPath);
- source->SetDefaultResource(IDR_NEW_OOBE_HTML);
- source->AddResourcePath(kOobeJSPath, IDR_NEW_OOBE_JS);
- return source;
-}
-
// Creates a WebUIDataSource for chrome://oobe
content::WebUIDataSource* CreateOobeUIDataSource(
const base::DictionaryValue& localized_strings,
const std::string& display_type) {
- if (display_type == OobeUI::kNewOobeDisplay) {
- return CreateNewOobeUIDataSource(localized_strings);
- }
content::WebUIDataSource* source =
content::WebUIDataSource::Create(chrome::kChromeUIOobeHost);
source->AddLocalizedStrings(localized_strings);
@@ -168,7 +153,6 @@ const char OobeUI::kLoginDisplay[] = "login";
const char OobeUI::kLockDisplay[] = "lock";
const char OobeUI::kUserAddingDisplay[] = "user-adding";
const char OobeUI::kAppLaunchSplashDisplay[] = "app-launch-splash";
-const char OobeUI::kNewOobeDisplay[] = "new-oobe";
// static
const char OobeUI::kScreenOobeHIDDetection[] = "hid-detection";
@@ -243,7 +227,7 @@ OobeUI::OobeUI(content::WebUI* web_ui, const GURL& url)
AddScreenHandler(update_screen_handler_);
network_dropdown_handler_->AddObserver(update_screen_handler_);
- if (display_type_ == kOobeDisplay || display_type_ == kNewOobeDisplay) {
+ if (display_type_ == kOobeDisplay) {
NetworkScreenHandler* network_screen_handler =
new NetworkScreenHandler(core_handler_);
network_view_ = network_screen_handler;
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698