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

Unified Diff: chrome/browser/ui/extensions/application_launch.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: chrome/browser/ui/extensions/application_launch.h
diff --git a/chrome/browser/ui/extensions/application_launch.h b/chrome/browser/ui/extensions/application_launch.h
index 5f07ae0c5ae7391cb07da7c1548b950434d2599e..54bfd5ad8c8833be0189e1810587adbb6402081a 100644
--- a/chrome/browser/ui/extensions/application_launch.h
+++ b/chrome/browser/ui/extensions/application_launch.h
@@ -9,6 +9,7 @@
#include "base/files/file_path.h"
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/common/extensions/extension_constants.h"
+#include "extensions/common/constants.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/rect.h"
#include "url/gurl.h"
@@ -80,6 +81,10 @@ struct AppLaunchParams {
// If non-empty, the current directory from which any relative paths on the
// command line should be expanded from.
base::FilePath current_directory;
+
+ // Record where the app is launched from for tracking purpose.
+ // Different app may have their own enumeration of sources.
+ extensions::AppLaunchSource source;
};
// Opens the application, possibly prompting the user to re-enable it.

Powered by Google App Engine
This is Rietveld 408576698