| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 // static | 352 // static |
| 353 void InputDeviceSettings::SetSettingsForTesting( | 353 void InputDeviceSettings::SetSettingsForTesting( |
| 354 InputDeviceSettings* test_settings) { | 354 InputDeviceSettings* test_settings) { |
| 355 if (g_test_instance == test_settings) | 355 if (g_test_instance == test_settings) |
| 356 return; | 356 return; |
| 357 delete g_test_instance; | 357 delete g_test_instance; |
| 358 g_test_instance = test_settings; | 358 g_test_instance = test_settings; |
| 359 } | 359 } |
| 360 | 360 |
| 361 // static |
| 362 bool InputDeviceSettings::DidSetSettingsForTesting() { |
| 363 return g_test_instance; |
| 364 } |
| 365 |
| 361 } // namespace system | 366 } // namespace system |
| 362 } // namespace chromeos | 367 } // namespace chromeos |
| OLD | NEW |