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

Unified Diff: athena/extensions/shell/extensions_delegate_impl.cc

Issue 642383003: Add the ability to load multiple apps into app_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | athena/main/athena_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/shell/extensions_delegate_impl.cc
diff --git a/athena/extensions/shell/extensions_delegate_impl.cc b/athena/extensions/shell/extensions_delegate_impl.cc
index bd797f88a3a3fb3719a6e4c2a8da32ca63fb744a..eebf2d660671882b03692f48121fdf5a4e925929 100644
--- a/athena/extensions/shell/extensions_delegate_impl.cc
+++ b/athena/extensions/shell/extensions_delegate_impl.cc
@@ -6,6 +6,7 @@
#include "athena/extensions/shell/athena_shell_app_window_client.h"
#include "base/macros.h"
+#include "extensions/browser/extension_registry.h"
#include "extensions/browser/install/extension_install_ui.h"
#include "extensions/common/extension_set.h"
#include "extensions/shell/browser/shell_extension_system.h"
@@ -30,13 +31,10 @@ class ShellExtensionsDelegate : public ExtensionsDelegate {
return context_;
}
virtual const extensions::ExtensionSet& GetInstalledExtensions() override {
- shell_extensions_.Clear();
- if (extension_system_->extension().get())
- shell_extensions_.Insert(extension_system_->extension());
- return shell_extensions_;
+ return extensions::ExtensionRegistry::Get(context_)->enabled_extensions();
}
virtual bool LaunchApp(const std::string& app_id) override {
- extension_system_->LaunchApp();
+ extension_system_->LaunchApp(app_id);
return true;
}
@@ -49,7 +47,6 @@ class ShellExtensionsDelegate : public ExtensionsDelegate {
content::BrowserContext* context_;
extensions::ShellExtensionSystem* extension_system_;
- extensions::ExtensionSet shell_extensions_;
AthenaShellAppWindowClient app_window_client_;
« no previous file with comments | « no previous file | athena/main/athena_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698