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 "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "base/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "chrome/browser/automation/automation_provider_json.h" | 16 #include "chrome/browser/automation/automation_provider_json.h" |
17 #include "chrome/browser/automation/automation_provider_observers.h" | 17 #include "chrome/browser/automation/automation_provider_observers.h" |
18 #include "chrome/browser/automation/automation_util.h" | 18 #include "chrome/browser/automation/automation_util.h" |
19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 20 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
21 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 21 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
22 #include "chrome/browser/chromeos/audio/audio_handler.h" | 22 #include "chrome/browser/chromeos/audio/audio_handler.h" |
23 #include "chrome/browser/chromeos/cros/cros_library.h" | 23 #include "chrome/browser/chromeos/cros/cros_library.h" |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 1269 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
1270 AddObserver(power_manager_observer_); | 1270 AddObserver(power_manager_observer_); |
1271 } | 1271 } |
1272 | 1272 |
1273 void TestingAutomationProvider::RemoveChromeosObservers() { | 1273 void TestingAutomationProvider::RemoveChromeosObservers() { |
1274 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 1274 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
1275 RemoveObserver(power_manager_observer_); | 1275 RemoveObserver(power_manager_observer_); |
1276 delete power_manager_observer_; | 1276 delete power_manager_observer_; |
1277 power_manager_observer_ = NULL; | 1277 power_manager_observer_ = NULL; |
1278 } | 1278 } |
OLD | NEW |