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

Unified Diff: chrome/browser/chromeos/settings/shutdown_policy_forwarder.h

Issue 2497123002: chromeos: Move device shutdown handling out of chrome into ash (Closed)
Patch Set: rebase Created 4 years, 1 month 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: chrome/browser/chromeos/settings/shutdown_policy_forwarder.h
diff --git a/chrome/browser/chromeos/settings/shutdown_policy_forwarder.h b/chrome/browser/chromeos/settings/shutdown_policy_forwarder.h
new file mode 100644
index 0000000000000000000000000000000000000000..c385f39dfbf66c80a9ff5d464415cefbdc189178
--- /dev/null
+++ b/chrome/browser/chromeos/settings/shutdown_policy_forwarder.h
@@ -0,0 +1,30 @@
+// Copyright 2016 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SHUTDOWN_POLICY_FORWARDER_H_
+#define CHROME_BROWSER_CHROMEOS_SETTINGS_SHUTDOWN_POLICY_FORWARDER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/chromeos/settings/shutdown_policy_handler.h"
+
+namespace chromeos {
+
+// Forwards the current DeviceRebootOnShutdown policy to ash.
+class ShutdownPolicyForwarder : public ShutdownPolicyHandler::Delegate {
+ public:
+ ShutdownPolicyForwarder();
+ ~ShutdownPolicyForwarder() override;
+
+ private:
+ // ShutdownPolicyHandler::Delegate:
+ void OnShutdownPolicyChanged(bool reboot_on_shutdown) override;
+
+ ShutdownPolicyHandler shutdown_policy_handler_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShutdownPolicyForwarder);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SHUTDOWN_POLICY_FORWARDER_H_
« no previous file with comments | « chrome/browser/chromeos/power/shutdown_client_impl.cc ('k') | chrome/browser/chromeos/settings/shutdown_policy_forwarder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698