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

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

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: extensions/browser/api/app_runtime/app_runtime_api.h
diff --git a/extensions/browser/api/app_runtime/app_runtime_api.h b/extensions/browser/api/app_runtime/app_runtime_api.h
index 1beed1d32ce2209f0cff9c6fadac48277e659cbc..38f6fd6193cddfa3a4d5e8f75135d000fc2eff10 100644
--- a/extensions/browser/api/app_runtime/app_runtime_api.h
+++ b/extensions/browser/api/app_runtime/app_runtime_api.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/memory/scoped_ptr.h"
+#include "extensions/common/constants.h"
class GURL;
@@ -36,7 +37,8 @@ class AppRuntimeEventRouter {
// Dispatches the onLaunched event to the given app.
static void DispatchOnLaunchedEvent(content::BrowserContext* context,
- const Extension* extension);
+ const Extension* extension,
+ extensions::AppLaunchSource source);
// Dispatches the onRestarted event to the given app, providing a list of
// restored file entries from the previous run.

Powered by Google App Engine
This is Rietveld 408576698