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

Unified Diff: extensions/shell/browser/shell_extension_system.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: extensions/shell/browser/shell_extension_system.cc
diff --git a/extensions/shell/browser/shell_extension_system.cc b/extensions/shell/browser/shell_extension_system.cc
index f924ab5af62c43c537474e603488c2fc25b04505..fcfa8a76058c25ab76d82ccafaedf0a50a47aa44 100644
--- a/extensions/shell/browser/shell_extension_system.cc
+++ b/extensions/shell/browser/shell_extension_system.cc
@@ -23,6 +23,7 @@
#include "extensions/browser/process_manager.h"
#include "extensions/browser/quota_service.h"
#include "extensions/browser/runtime_data.h"
+#include "extensions/common/constants.h"
#include "extensions/common/file_util.h"
using content::BrowserContext;
@@ -81,8 +82,8 @@ bool ShellExtensionSystem::LoadApp(const base::FilePath& app_dir) {
void ShellExtensionSystem::LaunchApp() {
// Send the onLaunched event.
DCHECK(extension_.get());
- AppRuntimeEventRouter::DispatchOnLaunchedEvent(browser_context_,
- extension_.get());
+ AppRuntimeEventRouter::DispatchOnLaunchedEvent(
+ browser_context_, extension_.get(), extensions::SOURCE_ATHENA);
benwells 2014/10/28 21:22:48 This should probably be SOURCE_UNKNOWN.
cylee1 2014/10/29 16:40:00 Done.
}
void ShellExtensionSystem::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698