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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.cc

Issue 13874011: Start registering for the kEulaAccepted for mobile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile.cc » ('j') | chrome/browser/profiles/profile.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/login/wizard_controller.h" 5 #include "chrome/browser/chromeos/login/wizard_controller.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 10
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 415
416 void WizardController::SkipUpdateEnrollAfterEula() { 416 void WizardController::SkipUpdateEnrollAfterEula() {
417 skip_update_enroll_after_eula_ = true; 417 skip_update_enroll_after_eula_ = true;
418 } 418 }
419 419
420 // static 420 // static
421 void WizardController::RegisterPrefs(PrefRegistrySimple* registry) { 421 void WizardController::RegisterPrefs(PrefRegistrySimple* registry) {
422 registry->RegisterBooleanPref(kOobeComplete, false); 422 registry->RegisterBooleanPref(kOobeComplete, false);
423 registry->RegisterIntegerPref(kDeviceRegistered, -1); 423 registry->RegisterIntegerPref(kDeviceRegistered, -1);
424 registry->RegisterBooleanPref(prefs::kEulaAccepted, false);
425 registry->RegisterStringPref(kInitialLocale, "en-US"); 424 registry->RegisterStringPref(kInitialLocale, "en-US");
426 } 425 }
427 426
428 /////////////////////////////////////////////////////////////////////////////// 427 ///////////////////////////////////////////////////////////////////////////////
429 // WizardController, ExitHandlers: 428 // WizardController, ExitHandlers:
430 void WizardController::OnNetworkConnected() { 429 void WizardController::OnNetworkConnected() {
431 if (is_official_build_) { 430 if (is_official_build_) {
432 if (!IsEulaAccepted()) { 431 if (!IsEulaAccepted()) {
433 ShowEulaScreen(); 432 ShowEulaScreen();
434 } else { 433 } else {
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 return zero_delay_enabled_; 886 return zero_delay_enabled_;
888 } 887 }
889 888
890 // static 889 // static
891 void WizardController::SetZeroDelays() { 890 void WizardController::SetZeroDelays() {
892 kShowDelayMs = 0; 891 kShowDelayMs = 0;
893 zero_delay_enabled_ = true; 892 zero_delay_enabled_ = true;
894 } 893 }
895 894
896 } // namespace chromeos 895 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile.cc » ('j') | chrome/browser/profiles/profile.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698