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

Unified Diff: chrome/browser/ui/extensions/app_launch_params.cc

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
Index: chrome/browser/ui/extensions/app_launch_params.cc
diff --git a/chrome/browser/ui/extensions/app_launch_params.cc b/chrome/browser/ui/extensions/app_launch_params.cc
index a8598753a3033869a7bd0eb2e63cea039b2bf2cc..fdb6a9f1e331be798eb8b3690320c0b48b582b2e 100644
--- a/chrome/browser/ui/extensions/app_launch_params.cc
+++ b/chrome/browser/ui/extensions/app_launch_params.cc
@@ -22,7 +22,9 @@ AppLaunchParams::AppLaunchParams(Profile* profile,
desktop_type(chrome::GetActiveDesktop()),
override_url(),
override_bounds(),
- command_line(CommandLine::NO_PROGRAM) {}
+ command_line(CommandLine::NO_PROGRAM),
+ source(extensions::SOURCE_UNTRACKED) {
+}
AppLaunchParams::AppLaunchParams(Profile* profile,
const extensions::Extension* extension,
@@ -34,7 +36,8 @@ AppLaunchParams::AppLaunchParams(Profile* profile,
desktop_type(chrome::GetActiveDesktop()),
override_url(),
override_bounds(),
- command_line(CommandLine::NO_PROGRAM) {
+ command_line(CommandLine::NO_PROGRAM),
+ source(extensions::SOURCE_UNTRACKED) {
// Look up the app preference to find out the right launch container. Default
// is to launch as a regular tab.
container =
@@ -52,7 +55,8 @@ AppLaunchParams::AppLaunchParams(Profile* profile,
desktop_type(desktop_type),
override_url(),
override_bounds(),
- command_line(CommandLine::NO_PROGRAM) {
+ command_line(CommandLine::NO_PROGRAM),
+ source(extensions::SOURCE_UNTRACKED) {
if (disposition == NEW_FOREGROUND_TAB || disposition == NEW_BACKGROUND_TAB) {
container = extensions::LAUNCH_CONTAINER_TAB;
} else if (disposition == NEW_WINDOW) {
« no previous file with comments | « chrome/browser/ui/extensions/app_launch_params.h ('k') | chrome/browser/ui/extensions/application_launch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698