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

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

Issue 17010003: Cleanup of system settings constants (ab)use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // wallpaper load on boot. 347 // wallpaper load on boot.
348 if (CommandLine::ForCurrentProcess()->HasSwitch( 348 if (CommandLine::ForCurrentProcess()->HasSwitch(
349 switches::kDisableBootAnimation)) { 349 switches::kDisableBootAnimation)) {
350 localized_strings->SetString("bootIntoWallpaper", "on"); 350 localized_strings->SetString("bootIntoWallpaper", "on");
351 } else { 351 } else {
352 localized_strings->SetString("bootIntoWallpaper", "off"); 352 localized_strings->SetString("bootIntoWallpaper", "off");
353 } 353 }
354 354
355 bool keyboard_driven_oobe = false; 355 bool keyboard_driven_oobe = false;
356 system::StatisticsProvider::GetInstance()->GetMachineFlag( 356 system::StatisticsProvider::GetInstance()->GetMachineFlag(
357 chromeos::kOemKeyboardDrivenOobeKey, &keyboard_driven_oobe); 357 chromeos::system::kOemKeyboardDrivenOobeKey, &keyboard_driven_oobe);
358 localized_strings->SetString("highlightStrength", 358 localized_strings->SetString("highlightStrength",
359 keyboard_driven_oobe ? "strong" : "normal"); 359 keyboard_driven_oobe ? "strong" : "normal");
360 } 360 }
361 361
362 void OobeUI::InitializeScreenMaps() { 362 void OobeUI::InitializeScreenMaps() {
363 screen_names_.resize(SCREEN_UNKNOWN); 363 screen_names_.resize(SCREEN_UNKNOWN);
364 screen_names_[SCREEN_OOBE_NETWORK] = kScreenOobeNetwork; 364 screen_names_[SCREEN_OOBE_NETWORK] = kScreenOobeNetwork;
365 screen_names_[SCREEN_OOBE_EULA] = kScreenOobeEula; 365 screen_names_[SCREEN_OOBE_EULA] = kScreenOobeEula;
366 screen_names_[SCREEN_OOBE_UPDATE] = kScreenOobeUpdate; 366 screen_names_[SCREEN_OOBE_UPDATE] = kScreenOobeUpdate;
367 screen_names_[SCREEN_OOBE_ENROLLMENT] = kScreenOobeEnrollment; 367 screen_names_[SCREEN_OOBE_ENROLLMENT] = kScreenOobeEnrollment;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 void OobeUI::OnCurrentScreenChanged(const std::string& screen) { 432 void OobeUI::OnCurrentScreenChanged(const std::string& screen) {
433 if (screen_ids_.count(screen)) { 433 if (screen_ids_.count(screen)) {
434 current_screen_ = screen_ids_[screen]; 434 current_screen_ = screen_ids_[screen];
435 } else { 435 } else {
436 NOTREACHED() << "Screen should be registered in InitializeScreenMaps()"; 436 NOTREACHED() << "Screen should be registered in InitializeScreenMaps()";
437 current_screen_ = SCREEN_UNKNOWN; 437 current_screen_ = SCREEN_UNKNOWN;
438 } 438 }
439 } 439 }
440 440
441 } // namespace chromeos 441 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698