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

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

Issue 166833004: Add support for chrome.app.window.create() to app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (shell_app_window) Created 6 years, 10 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 85e33926d3123f9f260ec23484b724855eb696e1..39004117cf3f633f07b651414cb5308bd4d1cf78 100644
--- a/apps/shell/browser/shell_extension_system.h
+++ b/apps/shell/browser/shell_extension_system.h
@@ -40,6 +40,9 @@ class ShellExtensionSystem : public ExtensionSystem {
// Returns true on success.
bool LoadAndLaunchApp(const base::FilePath& app_dir);
+ // Closes the running app.
+ void CloseApp();
+
// BrowserContextKeyedService implementation:
virtual void Shutdown() OVERRIDE;
@@ -71,6 +74,9 @@ class ShellExtensionSystem : public ExtensionSystem {
private:
content::BrowserContext* browser_context_; // Not owned.
+ // Extension ID for the app.
+ std::string app_id_;
+
// Data to be accessed on the IO thread. Must outlive process_manager_.
scoped_refptr<InfoMap> info_map_;

Powered by Google App Engine
This is Rietveld 408576698