OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/hid_detection_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chromeos/login/oobe_screen.h" | 13 #include "chrome/browser/chromeos/login/oobe_screen.h" |
14 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h" | 14 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h" |
15 #include "chrome/browser/chromeos/login/screens/hid_detection_model.h" | 15 #include "chrome/browser/chromeos/login/screens/hid_detection_model.h" |
| 16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
16 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
17 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
18 #include "chromeos/chromeos_switches.h" | 19 #include "chromeos/chromeos_switches.h" |
19 #include "components/login/localized_values_builder.h" | 20 #include "components/login/localized_values_builder.h" |
20 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
21 | 22 |
22 namespace { | 23 namespace { |
23 | 24 |
24 const char kJsScreenPath[] = "login.HIDDetectionScreen"; | 25 const char kJsScreenPath[] = "login.HIDDetectionScreen"; |
25 | 26 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 if (model_) | 115 if (model_) |
115 model_->OnContinueButtonClicked(); | 116 model_->OnContinueButtonClicked(); |
116 } | 117 } |
117 | 118 |
118 // static | 119 // static |
119 void HIDDetectionScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) { | 120 void HIDDetectionScreenHandler::RegisterPrefs(PrefRegistrySimple* registry) { |
120 registry->RegisterIntegerPref(prefs::kTimesHIDDialogShown, 0); | 121 registry->RegisterIntegerPref(prefs::kTimesHIDDialogShown, 0); |
121 } | 122 } |
122 | 123 |
123 } // namespace chromeos | 124 } // namespace chromeos |
OLD | NEW |