Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: ash/common/shutdown_controller.cc

Issue 2616023005: cros: Remove OS_CHROMEOS ifdefs in ash/common (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/shutdown_controller.cc
diff --git a/ash/common/shutdown_controller.cc b/ash/common/shutdown_controller.cc
index 7342eb2cc43810226512d35becb9ed05550ae8f6..80b55463c16c4a23391695ca364af2c0071dce4c 100644
--- a/ash/common/shutdown_controller.cc
+++ b/ash/common/shutdown_controller.cc
@@ -6,12 +6,9 @@
#include "ash/common/shell_delegate.h"
#include "ash/common/wm_shell.h"
-
-#if defined(OS_CHROMEOS)
#include "base/sys_info.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/power_manager_client.h"
-#endif
namespace ash {
@@ -20,7 +17,6 @@ ShutdownController::ShutdownController() {}
ShutdownController::~ShutdownController() {}
void ShutdownController::ShutDownOrReboot() {
-#if defined(OS_CHROMEOS)
if (base::SysInfo::IsRunningOnChromeOS()) {
msw 2017/01/06 18:22:51 Weird, what is this? (It's not very well documente
James Cook 2017/01/06 20:33:05 It's how we check if we're running on real chromeo
// Power manager handles shutdown on Chrome OS hardware.
using chromeos::DBusThreadManager;
@@ -30,9 +26,8 @@ void ShutdownController::ShutDownOrReboot() {
DBusThreadManager::Get()->GetPowerManagerClient()->RequestShutdown();
return;
}
-#endif // defined(OS_CHROMEOS)
- // On Windows and on Linux desktop just exit.
+ // On Linux desktop just exit.
WmShell::Get()->delegate()->Exit();
}

Powered by Google App Engine
This is Rietveld 408576698