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

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: Prevent demotion of installed app due to race condition Created 6 years, 6 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 cb93a85c27227ae0ffdcc699949544f1da344a46..2e3ba3d9a870fee39987205d5c28716bb251266d 100644
--- a/extensions/browser/api/app_runtime/app_runtime_api.cc
+++ b/extensions/browser/api/app_runtime/app_runtime_api.cc
@@ -33,7 +33,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)
@@ -58,7 +57,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());
}

Powered by Google App Engine
This is Rietveld 408576698