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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_SHUTDOWN_POLICY_FORWARDER_H_
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_SHUTDOWN_POLICY_FORWARDER_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/settings/shutdown_policy_handler.h"
10
11 namespace chromeos {
12
13 // Forwards the current DeviceRebootOnShutdown policy to ash.
14 class ShutdownPolicyForwarder : public ShutdownPolicyHandler::Delegate {
15 public:
16 ShutdownPolicyForwarder();
17 ~ShutdownPolicyForwarder() override;
18
19 private:
20 // ShutdownPolicyHandler::Delegate:
21 void OnShutdownPolicyChanged(bool reboot_on_shutdown) override;
22
23 ShutdownPolicyHandler shutdown_policy_handler_;
24
25 DISALLOW_COPY_AND_ASSIGN(ShutdownPolicyForwarder);
26 };
27
28 } // namespace chromeos
29
30 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_SHUTDOWN_POLICY_FORWARDER_H_
OLDNEW
« 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