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

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: 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: 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 67b37fc102385bc7149c33a76f37e9b96ce22a00..164f447f11afb8ad217e7b9c4657ec7f2d50b5de 100644
--- a/extensions/shell/browser/shell_extension_system.cc
+++ b/extensions/shell/browser/shell_extension_system.cc
@@ -22,6 +22,7 @@
#include "extensions/browser/notification_types.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;
@@ -87,7 +88,8 @@ void ShellExtensionSystem::LaunchApp(const ExtensionId& extension_id) {
const Extension* extension = ExtensionRegistry::Get(browser_context_)
->enabled_extensions()
.GetByID(extension_id);
- AppRuntimeEventRouter::DispatchOnLaunchedEvent(browser_context_, extension);
+ AppRuntimeEventRouter::DispatchOnLaunchedEvent(
+ browser_context_, extension, extensions::SOURCE_UNTRACKED);
}
void ShellExtensionSystem::Shutdown() {
« no previous file with comments | « extensions/renderer/resources/app_runtime_custom_bindings.js ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698