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/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/i18n/time_formatting.h" | 8 #include "base/i18n/time_formatting.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/automation/automation_provider_json.h" | 12 #include "chrome/browser/automation/automation_provider_json.h" |
13 #include "chrome/browser/automation/automation_provider_observers.h" | 13 #include "chrome/browser/automation/automation_provider_observers.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 15 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
16 #include "chrome/browser/chromeos/audio/audio_handler.h" | 16 #include "chrome/browser/chromeos/audio/audio_handler.h" |
17 #include "chrome/browser/chromeos/cros/cros_library.h" | 17 #include "chrome/browser/chromeos/cros/cros_library.h" |
18 #include "chrome/browser/chromeos/cros/network_library.h" | 18 #include "chrome/browser/chromeos/cros/network_library.h" |
19 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
20 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | |
21 #include "chrome/browser/chromeos/dbus/update_engine_client.h" | |
22 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" | 19 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.
h" |
23 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 20 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
24 #include "chrome/browser/chromeos/login/login_display.h" | 21 #include "chrome/browser/chromeos/login/login_display.h" |
25 #include "chrome/browser/chromeos/login/login_display_host.h" | 22 #include "chrome/browser/chromeos/login/login_display_host.h" |
26 #include "chrome/browser/chromeos/login/screen_locker.h" | 23 #include "chrome/browser/chromeos/login/screen_locker.h" |
27 #include "chrome/browser/chromeos/login/webui_login_display.h" | 24 #include "chrome/browser/chromeos/login/webui_login_display.h" |
28 #include "chrome/browser/chromeos/login/webui_login_display_host.h" | 25 #include "chrome/browser/chromeos/login/webui_login_display_host.h" |
29 #include "chrome/browser/chromeos/login/wizard_controller.h" | 26 #include "chrome/browser/chromeos/login/wizard_controller.h" |
30 #include "chrome/browser/chromeos/options/take_photo_dialog.h" | 27 #include "chrome/browser/chromeos/options/take_photo_dialog.h" |
31 #include "chrome/browser/chromeos/proxy_cros_settings_parser.h" | 28 #include "chrome/browser/chromeos/proxy_cros_settings_parser.h" |
32 #include "chrome/browser/chromeos/system/timezone_settings.h" | 29 #include "chrome/browser/chromeos/system/timezone_settings.h" |
33 #include "chrome/browser/policy/browser_policy_connector.h" | 30 #include "chrome/browser/policy/browser_policy_connector.h" |
34 #include "chrome/browser/policy/cloud_policy_cache_base.h" | 31 #include "chrome/browser/policy/cloud_policy_cache_base.h" |
35 #include "chrome/browser/policy/cloud_policy_data_store.h" | 32 #include "chrome/browser/policy/cloud_policy_data_store.h" |
36 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 33 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
37 #include "chrome/browser/policy/enterprise_install_attributes.h" | 34 #include "chrome/browser/policy/enterprise_install_attributes.h" |
38 #include "chrome/browser/prefs/pref_service.h" | 35 #include "chrome/browser/prefs/pref_service.h" |
39 #include "chrome/browser/ui/browser_window.h" | 36 #include "chrome/browser/ui/browser_window.h" |
40 #include "chrome/browser/ui/dialog_style.h" | 37 #include "chrome/browser/ui/dialog_style.h" |
41 #include "chrome/browser/ui/views/window.h" | 38 #include "chrome/browser/ui/views/window.h" |
42 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 39 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
43 #include "chrome/common/pref_names.h" | 40 #include "chrome/common/pref_names.h" |
| 41 #include "chromeos/dbus/dbus_thread_manager.h" |
| 42 #include "chromeos/dbus/power_manager_client.h" |
| 43 #include "chromeos/dbus/update_engine_client.h" |
44 #include "net/base/network_change_notifier.h" | 44 #include "net/base/network_change_notifier.h" |
45 #include "policy/policy_constants.h" | 45 #include "policy/policy_constants.h" |
46 #include "ui/views/widget/widget.h" | 46 #include "ui/views/widget/widget.h" |
47 | 47 |
48 using chromeos::CrosLibrary; | 48 using chromeos::CrosLibrary; |
49 using chromeos::DBusThreadManager; | 49 using chromeos::DBusThreadManager; |
50 using chromeos::NetworkLibrary; | 50 using chromeos::NetworkLibrary; |
51 using chromeos::UpdateEngineClient; | 51 using chromeos::UpdateEngineClient; |
52 using chromeos::UserManager; | 52 using chromeos::UserManager; |
53 | 53 |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 1196 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
1197 AddObserver(power_manager_observer_); | 1197 AddObserver(power_manager_observer_); |
1198 } | 1198 } |
1199 | 1199 |
1200 void TestingAutomationProvider::RemoveChromeosObservers() { | 1200 void TestingAutomationProvider::RemoveChromeosObservers() { |
1201 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 1201 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
1202 RemoveObserver(power_manager_observer_); | 1202 RemoveObserver(power_manager_observer_); |
1203 delete power_manager_observer_; | 1203 delete power_manager_observer_; |
1204 power_manager_observer_ = NULL; | 1204 power_manager_observer_ = NULL; |
1205 } | 1205 } |
OLD | NEW |