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

Unified Diff: apps/shell/browser/shell_extension_system.h

Issue 313733005: Introduces --app flag to athena to load an app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 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: apps/shell/browser/shell_extension_system.h
diff --git a/apps/shell/browser/shell_extension_system.h b/apps/shell/browser/shell_extension_system.h
index a287d2d1fb74084c5e09c98a43e61c0442ee81ca..2c1f81838a9372f94fab6d2db4845ec63dd4c168 100644
--- a/apps/shell/browser/shell_extension_system.h
+++ b/apps/shell/browser/shell_extension_system.h
@@ -36,9 +36,11 @@ class ShellExtensionSystem : public ExtensionSystem {
explicit ShellExtensionSystem(content::BrowserContext* browser_context);
virtual ~ShellExtensionSystem();
- // Loads an unpacked application from a directory and attempts to launch it.
- // Returns true on success.
- bool LoadAndLaunchApp(const base::FilePath& app_dir);
+ // Loads an unpacked application from a directory. Returns true on success.
+ bool LoadApp(const base::FilePath& app_dir);
+
+ // Launch the currently loaded app.
+ void LaunchApp();
// KeyedService implementation:
virtual void Shutdown() OVERRIDE;
@@ -75,6 +77,8 @@ class ShellExtensionSystem : public ExtensionSystem {
// 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_;
« no previous file with comments | « apps/shell/browser/default_shell_browser_main_delegate.cc ('k') | apps/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698