| 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/chromeos/system/input_device_settings.h" | 5 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "ui/ozone/public/input_controller.h" | 9 #include "ui/ozone/public/input_controller.h" |
| 10 #include "ui/ozone/public/ozone_platform.h" | 10 #include "ui/ozone/public/ozone_platform.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 // static | 173 // static |
| 174 void InputDeviceSettings::SetSettingsForTesting( | 174 void InputDeviceSettings::SetSettingsForTesting( |
| 175 InputDeviceSettings* test_settings) { | 175 InputDeviceSettings* test_settings) { |
| 176 if (g_test_instance == test_settings) | 176 if (g_test_instance == test_settings) |
| 177 return; | 177 return; |
| 178 delete g_test_instance; | 178 delete g_test_instance; |
| 179 g_test_instance = test_settings; | 179 g_test_instance = test_settings; |
| 180 } | 180 } |
| 181 | 181 |
| 182 // static |
| 183 bool InputDeviceSettings::DidSetSettingsForTesting() { |
| 184 return g_test_instance; |
| 185 } |
| 186 |
| 182 } // namespace system | 187 } // namespace system |
| 183 } // namespace chromeos | 188 } // namespace chromeos |
| OLD | NEW |