| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 chromeos::WizardController::kAutoEnrollmentCheckScreenName | 103 chromeos::WizardController::kAutoEnrollmentCheckScreenName |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 // Checks flag for HID-detection screen show. | 106 // Checks flag for HID-detection screen show. |
| 107 bool CanShowHIDDetectionScreen() { | 107 bool CanShowHIDDetectionScreen() { |
| 108 return !CommandLine::ForCurrentProcess()->HasSwitch( | 108 return !CommandLine::ForCurrentProcess()->HasSwitch( |
| 109 chromeos::switches::kDisableHIDDetectionOnOOBE); | 109 chromeos::switches::kDisableHIDDetectionOnOOBE); |
| 110 } | 110 } |
| 111 | 111 |
| 112 bool IsResumableScreen(const std::string& screen) { | 112 bool IsResumableScreen(const std::string& screen) { |
| 113 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kResumableScreens); ++i) { | 113 for (size_t i = 0; i < arraysize(kResumableScreens); ++i) { |
| 114 if (screen == kResumableScreens[i]) | 114 if (screen == kResumableScreens[i]) |
| 115 return true; | 115 return true; |
| 116 } | 116 } |
| 117 return false; | 117 return false; |
| 118 } | 118 } |
| 119 | 119 |
| 120 void RecordUMAHistogramForOOBEStepCompletionTime(std::string screen_name, | 120 void RecordUMAHistogramForOOBEStepCompletionTime(std::string screen_name, |
| 121 base::TimeDelta step_time) { | 121 base::TimeDelta step_time) { |
| 122 screen_name[0] = std::toupper(screen_name[0]); | 122 screen_name[0] = std::toupper(screen_name[0]); |
| 123 std::string histogram_name = "OOBE.StepCompletionTime." + screen_name; | 123 std::string histogram_name = "OOBE.StepCompletionTime." + screen_name; |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 scoped_ptr<pairing_chromeos::HostPairingController> remora_controller) { | 1254 scoped_ptr<pairing_chromeos::HostPairingController> remora_controller) { |
| 1255 VLOG(1) << "OnSharkConnected"; | 1255 VLOG(1) << "OnSharkConnected"; |
| 1256 remora_controller_ = remora_controller.Pass(); | 1256 remora_controller_ = remora_controller.Pass(); |
| 1257 base::MessageLoop::current()->DeleteSoon( | 1257 base::MessageLoop::current()->DeleteSoon( |
| 1258 FROM_HERE, shark_connection_listener_.release()); | 1258 FROM_HERE, shark_connection_listener_.release()); |
| 1259 shark_controller_detected_ = true; | 1259 shark_controller_detected_ = true; |
| 1260 ShowHostPairingScreen(); | 1260 ShowHostPairingScreen(); |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 } // namespace chromeos | 1263 } // namespace chromeos |
| OLD | NEW |