OLD | NEW |
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 if (local_state->FindPreference(prefs::kScreenMagnifierEnabled) == NULL) { | 395 if (local_state->FindPreference(prefs::kScreenMagnifierEnabled) == NULL) { |
396 local_state->RegisterBooleanPref(prefs::kScreenMagnifierEnabled, | 396 local_state->RegisterBooleanPref(prefs::kScreenMagnifierEnabled, |
397 false, | 397 false, |
398 PrefService::UNSYNCABLE_PREF); | 398 PrefService::UNSYNCABLE_PREF); |
399 } | 399 } |
400 if (local_state->FindPreference(prefs::kVirtualKeyboardEnabled) == NULL) { | 400 if (local_state->FindPreference(prefs::kVirtualKeyboardEnabled) == NULL) { |
401 local_state->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled, | 401 local_state->RegisterBooleanPref(prefs::kVirtualKeyboardEnabled, |
402 false, | 402 false, |
403 PrefService::UNSYNCABLE_PREF); | 403 PrefService::UNSYNCABLE_PREF); |
404 } | 404 } |
| 405 local_state->RegisterBooleanPref(prefs::kOwnerPrimaryMouseButtonRight, false); |
| 406 local_state->RegisterBooleanPref(prefs::kOwnerTapToClickEnabled, true); |
405 } | 407 } |
406 | 408 |
407 /////////////////////////////////////////////////////////////////////////////// | 409 /////////////////////////////////////////////////////////////////////////////// |
408 // WizardController, ExitHandlers: | 410 // WizardController, ExitHandlers: |
409 void WizardController::OnNetworkConnected() { | 411 void WizardController::OnNetworkConnected() { |
410 if (is_official_build_) { | 412 if (is_official_build_) { |
411 if (!IsEulaAccepted()) { | 413 if (!IsEulaAccepted()) { |
412 ShowEulaScreen(); | 414 ShowEulaScreen(); |
413 } else { | 415 } else { |
414 // Possible cases: | 416 // Possible cases: |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 return zero_delay_enabled_; | 800 return zero_delay_enabled_; |
799 } | 801 } |
800 | 802 |
801 // static | 803 // static |
802 void WizardController::SetZeroDelays() { | 804 void WizardController::SetZeroDelays() { |
803 kShowDelayMs = 0; | 805 kShowDelayMs = 0; |
804 zero_delay_enabled_ = true; | 806 zero_delay_enabled_ = true; |
805 } | 807 } |
806 | 808 |
807 } // namespace chromeos | 809 } // namespace chromeos |
OLD | NEW |