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

Unified Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 2281813002: ChromeOS: Restrict material-design OOBE to compatible devices only. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/oobe_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wizard_controller.cc
diff --git a/chrome/browser/chromeos/login/wizard_controller.cc b/chrome/browser/chromeos/login/wizard_controller.cc
index 975712345366b5cfd6dd08ceff2176dc998eaed4..3342221262e913cd1e877d54650bc3f0e549c1a1 100644
--- a/chrome/browser/chromeos/login/wizard_controller.cc
+++ b/chrome/browser/chromeos/login/wizard_controller.cc
@@ -916,10 +916,13 @@ void WizardController::SetStatusAreaVisible(bool visible) {
void WizardController::OnHIDScreenNecessityCheck(bool screen_needed) {
if (!oobe_ui_)
return;
- if (screen_needed)
+
+ if (screen_needed) {
ShowHIDDetectionScreen();
- else
+ } else {
+ oobe_ui_->EnableMdOobe();
ShowNetworkScreen();
+ }
}
void WizardController::AdvanceToScreen(const std::string& screen_name) {
@@ -973,6 +976,7 @@ void WizardController::AdvanceToScreen(const std::string& screen_name) {
weak_factory_.GetWeakPtr());
oobe_ui_->GetHIDDetectionView()->CheckIsScreenRequired(on_check);
} else {
+ oobe_ui_->EnableMdOobe();
ShowNetworkScreen();
}
} else {
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/oobe_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698