Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index 5605bd4525a2091509e1d420fb636a5a7fe809f6..696baa0982c6bcfc6e8591ba9afe6a306082ce5e 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -132,7 +132,7 @@ |
#endif |
#if defined(OS_CHROMEOS) |
-#include "chrome/browser/chromeos/cros/cros_library.h" |
+#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
#include "chrome/browser/ui/webui/active_downloads_ui.h" |
#else |
#include "chrome/browser/download/download_shelf.h" |
@@ -196,7 +196,8 @@ TestingAutomationProvider::TestingAutomationProvider(Profile* profile) |
registrar_.Add(this, chrome::NOTIFICATION_SESSION_END, |
content::NotificationService::AllSources()); |
#if defined(OS_CHROMEOS) |
- chromeos::CrosLibrary::Get()->GetPowerLibrary()->AddObserver(this); |
+ chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
+ AddObserver(this); |
#endif |
} |