| 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_;
|
|
|