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

Unified Diff: chrome/browser/apps/app_launch_for_metro_restart_win.cc

Issue 657023008: Add a new field "source" in launchData of chrome.app.runtime.onLaunched() to trace launch source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 6 years, 1 month 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 | « apps/launcher.cc ('k') | chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/app_launch_for_metro_restart_win.cc
diff --git a/chrome/browser/apps/app_launch_for_metro_restart_win.cc b/chrome/browser/apps/app_launch_for_metro_restart_win.cc
index 5522327b98a32f5b9de0b69f3f58f38d8cdc0862..05606f56907203aaafbeca668ca6fe2bba26307a 100644
--- a/chrome/browser/apps/app_launch_for_metro_restart_win.cc
+++ b/chrome/browser/apps/app_launch_for_metro_restart_win.cc
@@ -18,6 +18,7 @@
#include "chrome/common/pref_names.h"
#include "extensions/browser/api/app_runtime/app_runtime_api.h"
#include "extensions/browser/extension_system.h"
+#include "extensions/common/constants.h"
using extensions::AppRuntimeEventRouter;
using extensions::Extension;
@@ -39,7 +40,8 @@ void LaunchAppWithId(Profile* profile,
if (!extension)
return;
- AppRuntimeEventRouter::DispatchOnLaunchedEvent(profile, extension);
+ AppRuntimeEventRouter::DispatchOnLaunchedEvent(
+ profile, extension, extensions::SOURCE_RESTART);
}
} // namespace
« no previous file with comments | « apps/launcher.cc ('k') | chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698