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

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: 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..3ddd3ff1e17256a5da64375f6efd4281cd6db74a 100644
--- a/apps/shell/browser/shell_extension_system.h
+++ b/apps/shell/browser/shell_extension_system.h
@@ -36,10 +36,15 @@ 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.
+ // Runs LoadApp() and LaunchApp().
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 +80,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 | « no previous file | apps/shell/browser/shell_extension_system.cc » ('j') | apps/shell/browser/shell_extension_system.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698