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

Unified Diff: extensions/common/constants.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/common/constants.h
diff --git a/extensions/common/constants.h b/extensions/common/constants.h
index d952989760ec47f99fbdb8db445233d98af5d503..a1f806936128feff60bc17c187e5518811f5e472 100644
--- a/extensions/common/constants.h
+++ b/extensions/common/constants.h
@@ -108,6 +108,23 @@ extern const char kMimeTypePng[];
// The extension id of the Web Store component application.
extern const char kWebStoreAppId[];
+// Enumeration of possible app launch sources.
+enum AppLaunchSource {
+ SOURCE_UNKNOWN = 0,
+ SOURCE_APP_LAUNCHER,
+ SOURCE_NEW_TAB_PAGE,
+ SOURCE_RESTART,
+ SOURCE_RELOAD,
+ SOURCE_FILE_HANDLER,
+ SOURCE_URL_HANDLER,
+
+ SOURCE_GETHELP_SYSTEM_TRAY,
+ SOURCE_GETHELP_ABOUT_PAGE,
+ SOURCE_GETHELP_KEYBOARD,
+
+ NUM_APP_LAUNCH_SOURCES
+};
+
} // namespace extensions
namespace extension_misc {

Powered by Google App Engine
This is Rietveld 408576698