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

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: Created 6 years, 2 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: 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..47bc2c07096ff9d60c82f0dbc4008fb26e0ae46b 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_WIN_METRO);
benwells 2014/10/28 21:22:47 This should just be the same as the other restart
cylee1 2014/10/29 16:39:59 Done.
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698