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

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..5ffa24c3d460ac4f111fe8ba265d777dc7b2d28c 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;
@@ -38,6 +39,12 @@ class AppRuntimeEventRouter {
static void DispatchOnLaunchedEvent(content::BrowserContext* context,
benwells 2014/10/21 03:51:58 Again, can we augment this function instead of cre
cylee1 2014/10/21 13:41:16 Done.
const Extension* extension);
+ // Dispatches the onLaunched event to the given app with source parameters.
+ static void DispatchOnLaunchedEventWithSource(
+ content::BrowserContext* context,
+ 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.
static void DispatchOnRestartedEvent(content::BrowserContext* context,

Powered by Google App Engine
This is Rietveld 408576698