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/system/input_device_settings.h" | 5 #include "chrome/browser/chromeos/system/input_device_settings.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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/process/kill.h" | 13 #include "base/process/kill.h" |
14 #include "base/process/launch.h" | 14 #include "base/process/launch.h" |
15 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
19 #include "base/task_runner.h" | 19 #include "base/task_runner.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 20 #include "base/threading/sequenced_worker_pool.h" |
21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
22 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 22 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
23 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 23 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
24 #include "chrome/common/pref_names.h" | |
25 #include "chromeos/system/statistics_provider.h" | 24 #include "chromeos/system/statistics_provider.h" |
26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
27 | 26 |
28 namespace chromeos { | 27 namespace chromeos { |
29 namespace system { | 28 namespace system { |
30 | 29 |
31 namespace { | 30 namespace { |
32 | 31 |
33 InputDeviceSettings* g_instance_; | 32 InputDeviceSettings* g_instance_; |
34 InputDeviceSettings* g_test_instance_; | 33 InputDeviceSettings* g_test_instance_; |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 void InputDeviceSettings::SetSettingsForTesting( | 423 void InputDeviceSettings::SetSettingsForTesting( |
425 InputDeviceSettings* test_settings) { | 424 InputDeviceSettings* test_settings) { |
426 if (g_test_instance_ == test_settings) | 425 if (g_test_instance_ == test_settings) |
427 return; | 426 return; |
428 delete g_test_instance_; | 427 delete g_test_instance_; |
429 g_test_instance_ = test_settings; | 428 g_test_instance_ = test_settings; |
430 } | 429 } |
431 | 430 |
432 } // namespace system | 431 } // namespace system |
433 } // namespace chromeos | 432 } // namespace chromeos |
OLD | NEW |