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

Unified Diff: chrome/browser/apps/app_shim/extension_app_shim_handler_mac.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/apps/app_shim/extension_app_shim_handler_mac.cc
diff --git a/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc b/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
index 23d360a616aad328e7eee872b3c073c28700b97b..fbd1b4bb1222a62da1a9c44c0a4c7b167d42ea85 100644
--- a/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
+++ b/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
@@ -28,6 +28,7 @@
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_registry.h"
+#include "extensions/common/constants.h"
#include "ui/base/cocoa/focus_window_set.h"
using extensions::AppWindow;
@@ -185,7 +186,8 @@ void ExtensionAppShimHandler::Delegate::LaunchApp(
CoreAppLauncherHandler::RecordAppLaunchType(
extension_misc::APP_LAUNCH_CMD_LINE_APP, extension->GetType());
if (files.empty()) {
- apps::LaunchPlatformApp(profile, extension);
+ apps::LaunchPlatformApp(
+ profile, extension, extensions::SOURCE_COMMAND_LINE);
} else {
for (std::vector<base::FilePath>::const_iterator it = files.begin();
it != files.end(); ++it) {

Powered by Google App Engine
This is Rietveld 408576698