diff options
Diffstat (limited to 'extensions/shell/browser/shell_extension_system.h')
-rw-r--r-- | extensions/shell/browser/shell_extension_system.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/extensions/shell/browser/shell_extension_system.h b/extensions/shell/browser/shell_extension_system.h index 08004ce..28113b7 100644 --- a/extensions/shell/browser/shell_extension_system.h +++ b/extensions/shell/browser/shell_extension_system.h @@ -38,17 +38,19 @@ class ShellExtensionSystem : public ExtensionSystem { explicit ShellExtensionSystem(content::BrowserContext* browser_context); ~ShellExtensionSystem() override; - // Loads an unpacked application from a directory. Returns true on success. - bool LoadApp(const base::FilePath& app_dir); + // Loads an unpacked application from a directory. Returns the extension on + // success, or null otherwise. + const Extension* LoadApp(const base::FilePath& app_dir); - // Launch the currently loaded app. - void LaunchApp(); + // Initializes the extension system. + void Init(); + + // Launch the app with id |extension_id|. + void LaunchApp(const std::string& extension_id); // KeyedService implementation: void Shutdown() override; - scoped_refptr<Extension> extension() { return extension_; } - // ExtensionSystem implementation: void InitForRegularProfile(bool extensions_enabled) override; ExtensionService* extension_service() override; @@ -81,11 +83,6 @@ class ShellExtensionSystem : public ExtensionSystem { private: content::BrowserContext* browser_context_; // Not owned. - // Extension ID for the app. - std::string app_id_; - - scoped_refptr<Extension> extension_; - // Data to be accessed on the IO thread. Must outlive process_manager_. scoped_refptr<InfoMap> info_map_; |