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

Unified Diff: extensions/browser/api/app_runtime/app_runtime_api.cc

Issue 344543006: Disable ephemeral apps after they stop running (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments and refactoring Created 6 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
Index: extensions/browser/api/app_runtime/app_runtime_api.cc
diff --git a/extensions/browser/api/app_runtime/app_runtime_api.cc b/extensions/browser/api/app_runtime/app_runtime_api.cc
index 0ba19fb0cd0162c7ccf14aec6f5de0f10e046ae6..0704478dbeac084aa2b03cad4219f9a95a06c2a7 100644
--- a/extensions/browser/api/app_runtime/app_runtime_api.cc
+++ b/extensions/browser/api/app_runtime/app_runtime_api.cc
@@ -32,7 +32,6 @@ void DispatchOnEmbedRequestedEventImpl(
scoped_ptr<Event> event(
new Event(app_runtime::OnEmbedRequested::kEventName, args.Pass()));
event->restrict_to_browser_context = context;
- event->can_load_ephemeral_apps = true;
system->event_router()->DispatchEventWithLazyListener(extension_id,
event.Pass());
@@ -52,7 +51,6 @@ void DispatchOnLaunchedEventImpl(const std::string& extension_id,
scoped_ptr<Event> event(
new Event(app_runtime::OnLaunched::kEventName, args.Pass()));
event->restrict_to_browser_context = context;
- event->can_load_ephemeral_apps = true;
EventRouter::Get(context)
->DispatchEventWithLazyListener(extension_id, event.Pass());
ExtensionPrefs::Get(context)
@@ -86,7 +84,6 @@ void AppRuntimeEventRouter::DispatchOnRestartedEvent(
scoped_ptr<Event> event(
new Event(app_runtime::OnRestarted::kEventName, arguments.Pass()));
event->restrict_to_browser_context = context;
- event->can_load_ephemeral_apps = true;
EventRouter::Get(context)
->DispatchEventToExtension(extension->id(), event.Pass());
}
« no previous file with comments | « chrome/test/data/extensions/platform_apps/ephemeral_apps/dispatch_event/main.js ('k') | extensions/browser/event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698