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

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

Issue 10913163: Honor owner tap-to-click and mouse buttons swap on login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert changes in chrome_browser_main.cc Created 8 years, 3 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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698