Index: chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc |
diff --git a/chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc b/chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d6264389a8d1a68c38f8ab27052a2c221ce628e1 |
--- /dev/null |
+++ b/chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.h" |
+ |
+#include "base/logging.h" |
+#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
+#include "chrome/browser/chromeos/dbus/power_manager_client.h" |
+ |
+namespace chromeos { |
+ |
+void PowerButtonControllerDelegateChromeos::RequestLockScreen() { |
+ DBusThreadManager::Get()->GetPowerManagerClient()-> |
+ NotifyScreenLockRequested(); |
+} |
+ |
+void PowerButtonControllerDelegateChromeos::RequestShutdown() { |
+ DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown(); |
+} |
+ |
+} // namespace chromeos |