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

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: 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 | « extensions/common/api/app_runtime.idl ('k') | extensions/common/feature_switch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/constants.h
diff --git a/extensions/common/constants.h b/extensions/common/constants.h
index d952989760ec47f99fbdb8db445233d98af5d503..bd446861d7602187d56983c1fb54c18f70e689fc 100644
--- a/extensions/common/constants.h
+++ b/extensions/common/constants.h
@@ -108,6 +108,27 @@ extern const char kMimeTypePng[];
// The extension id of the Web Store component application.
extern const char kWebStoreAppId[];
+// Enumeration of possible app launch sources.
+// Note the enumeration is used in UMA histogram so entries
+// should not be re-ordered or removed.
+enum AppLaunchSource {
+ SOURCE_UNTRACKED = 0,
+ SOURCE_APP_LAUNCHER,
+ SOURCE_NEW_TAB_PAGE,
+ SOURCE_RELOAD,
+ SOURCE_RESTART,
+ SOURCE_LOAD_AND_LAUNCH,
+ SOURCE_COMMAND_LINE,
+ SOURCE_FILE_HANDLER,
+ SOURCE_URL_HANDLER,
+
+ SOURCE_SYSTEM_TRAY,
+ SOURCE_ABOUT_PAGE,
+ SOURCE_KEYBOARD,
+
+ NUM_APP_LAUNCH_SOURCES
+};
+
} // namespace extensions
namespace extension_misc {
« no previous file with comments | « extensions/common/api/app_runtime.idl ('k') | extensions/common/feature_switch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698