| Index: extensions/browser/api/runtime/runtime_api.h
|
| diff --git a/extensions/browser/api/runtime/runtime_api.h b/extensions/browser/api/runtime/runtime_api.h
|
| index e330521985518133218c86bdf3f05577f0db1f2a..901bab4a0a835f5f2808c80763b9baaca5f04d82 100644
|
| --- a/extensions/browser/api/runtime/runtime_api.h
|
| +++ b/extensions/browser/api/runtime/runtime_api.h
|
| @@ -64,6 +64,7 @@ class RuntimeAPI : public BrowserContextKeyedAPI,
|
| void OpenURL(const GURL& uninstall_url);
|
| bool GetPlatformInfo(core_api::runtime::PlatformInfo* info);
|
| bool RestartDevice(std::string* error_message);
|
| + bool OpenOptionsPage(const Extension* extension);
|
|
|
| private:
|
| friend class BrowserContextKeyedAPIFactory<RuntimeAPI>;
|
| @@ -162,6 +163,15 @@ class RuntimeGetBackgroundPageFunction : public UIThreadExtensionFunction {
|
| void OnPageLoaded(ExtensionHost*);
|
| };
|
|
|
| +class RuntimeOpenOptionsPageFunction : public UIThreadExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("runtime.openOptionsPage", RUNTIME_OPENOPTIONSPAGE)
|
| +
|
| + protected:
|
| + ~RuntimeOpenOptionsPageFunction() override {}
|
| + ResponseAction Run() override;
|
| +};
|
| +
|
| class RuntimeSetUninstallURLFunction : public UIThreadExtensionFunction {
|
| public:
|
| DECLARE_EXTENSION_FUNCTION("runtime.setUninstallURL", RUNTIME_SETUNINSTALLURL)
|
|
|