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

Unified Diff: chrome/browser/browser_process_platform_part_chromeos.h

Issue 16844020: app_mode: Add runtime.onRestartRequired event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments in #1, add test and remove onBrowserUpdateAvailable Created 7 years, 6 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: chrome/browser/browser_process_platform_part_chromeos.h
diff --git a/chrome/browser/browser_process_platform_part_chromeos.h b/chrome/browser/browser_process_platform_part_chromeos.h
index 3eb12364cc7ca105fc7fdc1d83a7dca4264fc551..9cc071890e3ae43e2e21c6c34736c2c143ed11cf 100644
--- a/chrome/browser/browser_process_platform_part_chromeos.h
+++ b/chrome/browser/browser_process_platform_part_chromeos.h
@@ -15,12 +15,22 @@ class OomPriorityManager;
class ProfileHelper;
}
+namespace chromeos {
+namespace system {
+class AutomaticRebootManager;
+}
+}
+
+
class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
public base::NonThreadSafe {
public:
BrowserProcessPlatformPart();
virtual ~BrowserProcessPlatformPart();
+ void InitializeAutomaticRebootManager();
+ void ShutdownAutomaticRebootManager();
+
// Returns the out-of-memory priority manager.
virtual chromeos::OomPriorityManager* oom_priority_manager();
@@ -31,6 +41,10 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
// Overridden from BrowserProcessPlatformPartBase:
virtual void StartTearDown() OVERRIDE;
+ chromeos::system::AutomaticRebootManager* automatic_reboot_manager() {
+ return automatic_reboot_manager_.get();
+ }
+
protected:
virtual void CreateProfileHelper();
@@ -40,6 +54,9 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
private:
scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_;
+ scoped_ptr<chromeos::system::AutomaticRebootManager>
+ automatic_reboot_manager_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
};

Powered by Google App Engine
This is Rietveld 408576698