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

Unified Diff: chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h

Issue 1970613003: Add a new app API to enable watchdog behavior restarts in kiosk apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing include Created 4 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/extensions/api/runtime/chrome_runtime_api_delegate.h
diff --git a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h
index 6ff1a05aef213e2301a6b1664bfa3dda6331f1a5..e4a09b6c1cfc2dfee680a8bf75fd7e8be933bc75 100644
--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h
+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h
@@ -59,6 +59,7 @@ class ChromeRuntimeAPIDelegate : public extensions::RuntimeAPIDelegate,
bool GetPlatformInfo(extensions::api::runtime::PlatformInfo* info) override;
bool RestartDevice(std::string* error_message) override;
bool OpenOptionsPage(const extensions::Extension* extension) override;
+ void SetOnDeviceShutdownCallback(const base::Closure& callback) override;
// content::NotificationObserver implementation.
void Observe(int type,
@@ -78,6 +79,8 @@ class ChromeRuntimeAPIDelegate : public extensions::RuntimeAPIDelegate,
content::NotificationRegistrar registrar_;
+ base::Closure on_device_shutdown_callback_;
+
// Whether the API registered with the ExtensionService to receive
// update notifications.
bool registered_for_updates_;

Powered by Google App Engine
This is Rietveld 408576698