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

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

Issue 2289643003: ChromeOS: Fix "continue OOBE on restart" functionality. (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 | « chrome/browser/ui/webui/chromeos/login/oobe_ui.h ('k') | chrome/common/pref_names.h » ('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 07ff15aff08b1da471278343b07f4f809437a6bd..d4731a19f7199152bcf2e39fe4a22b92e75d7b37 100644
--- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
@@ -63,11 +63,13 @@
#include "chrome/browser/ui/webui/theme_source.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/browser_resources.h"
#include "chrome/grit/chrome_unscaled_resources.h"
#include "chromeos/chromeos_switches.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
+#include "components/prefs/pref_service.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
#include "content/public/common/content_switches.h"
@@ -182,11 +184,6 @@ std::string GetDisplayType(const GURL& url) {
return path;
}
-bool UseMDOobe() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kEnableMdOobe);
-}
-
} // namespace
// static
@@ -494,7 +491,9 @@ void OobeUI::GetLocalizedStrings(base::DictionaryValue* localized_strings) {
bool new_kiosk_ui = KioskAppMenuHandler::EnableNewKioskUI();
localized_strings->SetString("newKioskUI", new_kiosk_ui ? "on" : "off");
localized_strings->SetString(
- "newOobeUI", (md_oobe_enabled_ && UseMDOobe()) ? "on" : "off");
+ "newOobeUI",
+ g_browser_process->local_state()->GetBoolean(prefs::kOobeMdMode) ? "on"
+ : "off");
}
void OobeUI::AddScreenHandler(BaseScreenHandler* handler) {
@@ -600,8 +599,4 @@ void OobeUI::OnCurrentScreenChanged(const std::string& screen) {
OnCurrentScreenChanged(current_screen_, new_screen));
}
-void OobeUI::EnableMdOobe() {
- md_oobe_enabled_ = true;
-}
-
} // namespace chromeos
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.h ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698