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

Unified Diff: extensions/shell/browser/shell_extension_system.cc

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Nits Created 4 years, 4 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 | « extensions/common/api/app_runtime.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_extension_system.cc
diff --git a/extensions/shell/browser/shell_extension_system.cc b/extensions/shell/browser/shell_extension_system.cc
index 5c14401882976b73af85f39741adfc9c1c6c7b8d..580774873b8d1ea825ea1497465e4ead11e802bb 100644
--- a/extensions/shell/browser/shell_extension_system.cc
+++ b/extensions/shell/browser/shell_extension_system.cc
@@ -24,6 +24,7 @@
#include "extensions/browser/runtime_data.h"
#include "extensions/browser/service_worker_manager.h"
#include "extensions/browser/value_store/value_store_factory_impl.h"
+#include "extensions/common/api/app_runtime.h"
#include "extensions/common/constants.h"
#include "extensions/common/file_util.h"
@@ -71,7 +72,7 @@ const Extension* ShellExtensionSystem::LoadApp(const base::FilePath& app_dir) {
weak_factory_.GetWeakPtr(), extension));
content::NotificationService::current()->Notify(
- extensions::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
+ NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
content::Source<BrowserContext>(browser_context_),
content::Details<const Extension>(extension.get()));
@@ -82,7 +83,7 @@ void ShellExtensionSystem::Init() {
// Inform the rest of the extensions system to start.
ready_.Signal();
content::NotificationService::current()->Notify(
- extensions::NOTIFICATION_EXTENSIONS_READY_DEPRECATED,
+ NOTIFICATION_EXTENSIONS_READY_DEPRECATED,
content::Source<BrowserContext>(browser_context_),
content::NotificationService::NoDetails());
}
@@ -96,7 +97,8 @@ void ShellExtensionSystem::LaunchApp(const ExtensionId& extension_id) {
->enabled_extensions()
.GetByID(extension_id);
AppRuntimeEventRouter::DispatchOnLaunchedEvent(
- browser_context_, extension, extensions::SOURCE_UNTRACKED);
+ browser_context_, extension, SOURCE_UNTRACKED,
+ std::unique_ptr<api::app_runtime::ActionData>());
}
void ShellExtensionSystem::Shutdown() {
« no previous file with comments | « extensions/common/api/app_runtime.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698