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

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

Issue 10808061: [cros] Flip enable-new-oobe switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/chromeos/login/wizard_in_process_browser_test.cc ('k') | chrome/common/chrome_switches.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 0581e70cca4d603530dc8ce62de3181aaf097f04..9ff15674f5c24ca611fae287e20a2b69085370ac 100644
--- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
@@ -180,7 +180,7 @@ OobeUI::OobeUI(content::WebUI* web_ui)
new options2::UserImageSource();
ChromeURLDataManager::AddDataSource(profile, user_image_source);
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNewOobe)) {
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableNewOobe)) {
// Set up the chrome://wallpaper/ source.
chromeos::options2::WallpaperImageSource* wallpaper_image_source =
new chromeos::options2::WallpaperImageSource();
@@ -238,7 +238,7 @@ void OobeUI::GetLocalizedStrings(base::DictionaryValue* localized_strings) {
handlers_[i]->GetLocalizedStrings(localized_strings);
ChromeURLDataManager::DataSource::SetFontAndTextDirection(localized_strings);
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNewOobe))
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableNewOobe))
localized_strings->SetString("oobeType", "new");
else
localized_strings->SetString("oobeType", "old");
« no previous file with comments | « chrome/browser/chromeos/login/wizard_in_process_browser_test.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698