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

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

Issue 2859423003: Remove ShellExtensionSystem::LaunchApp
Patch Set: Created 3 years, 7 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/shell/browser/shell_extension_system.h ('k') | extensions/shell/test/DEPS » ('j') | 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 19ce4fab5548fd332f92a5984a01a2c86cbd9d14..029c30061822f3331a7549657d2c93af4be38150 100644
--- a/extensions/shell/browser/shell_extension_system.cc
+++ b/extensions/shell/browser/shell_extension_system.cc
@@ -14,7 +14,6 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
-#include "extensions/browser/api/app_runtime/app_runtime_api.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/info_map.h"
@@ -25,8 +24,6 @@
#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"
using content::BrowserContext;
@@ -94,18 +91,6 @@ void ShellExtensionSystem::Init() {
content::NotificationService::NoDetails());
}
-void ShellExtensionSystem::LaunchApp(const ExtensionId& extension_id) {
- // Send the onLaunched event.
- DCHECK(ExtensionRegistry::Get(browser_context_)
- ->enabled_extensions()
- .Contains(extension_id));
- const Extension* extension = ExtensionRegistry::Get(browser_context_)
- ->enabled_extensions()
- .GetByID(extension_id);
- AppRuntimeEventRouter::DispatchOnLaunchedEvent(browser_context_, extension,
- SOURCE_UNTRACKED, nullptr);
-}
-
void ShellExtensionSystem::Shutdown() {
}
« no previous file with comments | « extensions/shell/browser/shell_extension_system.h ('k') | extensions/shell/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698