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

Unified Diff: apps/app_load_service.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
« no previous file with comments | « no previous file | apps/launcher.h » ('j') | apps/launcher.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_load_service.cc
diff --git a/apps/app_load_service.cc b/apps/app_load_service.cc
index fe224c5e8ebf7b64a0d2a419ca001be383bc6eaf..4444f873255b8fb830607219c9896bedbe2f0ef1 100644
--- a/apps/app_load_service.cc
+++ b/apps/app_load_service.cc
@@ -99,14 +99,18 @@ void AppLoadService::Observe(int type,
switch (it->second.action_type) {
case LAUNCH:
- LaunchPlatformApp(profile_, extension);
+ LaunchPlatformAppWithSource(
+ profile_, extension, extensions::SOURCE_RELOAD);
benwells 2014/10/21 03:51:57 This is unclear. Also, the source for LAUNCH_WITH_
cylee1 2014/10/21 13:41:16 To be honest I don't get the "case LAUNCH:" case I
break;
case RESTART:
RestartPlatformApp(profile_, extension);
break;
case LAUNCH_WITH_COMMAND_LINE:
- LaunchPlatformAppWithCommandLine(
- profile_, extension, it->second.command_line, it->second.current_dir);
+ LaunchPlatformAppWithCommandLine(profile_,
+ extension,
+ it->second.command_line,
+ it->second.current_dir,
+ extensions::SOURCE_RELOAD);
break;
default:
NOTREACHED();
« no previous file with comments | « no previous file | apps/launcher.h » ('j') | apps/launcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698