Chromium Code Reviews| Index: chrome/common/extensions/api/runtime.json |
| diff --git a/chrome/common/extensions/api/runtime.json b/chrome/common/extensions/api/runtime.json |
| index ad655e114396891b6f2bf5bd7a4161912e76bc15..39a1537ed84a4f3c8088f13a080d8c41935f5ff0 100644 |
| --- a/chrome/common/extensions/api/runtime.json |
| +++ b/chrome/common/extensions/api/runtime.json |
| @@ -408,10 +408,20 @@ |
| "optional": "true", |
| "description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns." |
| } |
| + }, |
| + { |
| + "name": "onRestartRequired", |
| + "type": "function", |
| + "description": "Fired when an app needs to be restarted. The app should close all its windows at its earliest convenient time to let the restart to happen. If the app does nothing, a restart will be enforced after a 24-hour grace period has passed. Currently, this event is only fired for Chrome OS kiosk apps.", |
|
bartfab (slow)
2013/06/21 18:18:13
Nit: "the app needs to be restarted" is not quite
xiyuan
2013/06/21 18:33:18
Done.
|
| + "parameters": [ |
| + { |
| + "type": "string", |
| + "name": "reason", |
| + "description": "The reason that the event is being dispatched.", |
| + "enum": ["app_update", "os_update", "periodic"] |
| + } |
| + ] |
| } |
| - |
| - |
| - |
| ] |
| } |
| ] |