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

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: 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/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 6223af348706ee50b8723afe509731c3ebfa3ceb..f86b10a955e918a6e535cc28bc4073251db83435 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;
@@ -186,7 +187,7 @@ 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_UNKNOWN);
benwells 2014/10/28 21:22:47 This should not be unknown, it should be SOURCE_CO
cylee1 2014/10/29 16:39:59 Done.
} else {
for (std::vector<base::FilePath>::const_iterator it = files.begin();
it != files.end(); ++it) {

Powered by Google App Engine
This is Rietveld 408576698