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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 977673002: Additional tracing and histogram in Extensions startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 3708493cb3b45db6b09a9ac4b75290f1f201157b..66b366c03101557f5c05f945f674c81781cdf8c5 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -276,6 +276,7 @@ ExtensionService::ExtensionService(Profile* profile,
shared_module_service_(new extensions::SharedModuleService(profile_)),
app_data_migrator_(new extensions::AppDataMigrator(profile_, registry_)) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ TRACE_EVENT0("browser,startup", "ExtensionService::ExtensionService::ctor");
// Figure out if extension installation should be enabled.
if (extensions::ExtensionsBrowserClient::Get()->AreExtensionsDisabled(
@@ -298,7 +299,7 @@ ExtensionService::ExtensionService(Profile* profile,
extensions::ExtensionManagementFactory::GetForBrowserContext(profile_)
->AddObserver(this);
- // Set up the ExtensionUpdater
+ // Set up the ExtensionUpdater.
if (autoupdate_enabled) {
int update_frequency = extensions::kDefaultUpdateFrequencySeconds;
if (command_line->HasSwitch(switches::kExtensionsUpdateFrequency)) {

Powered by Google App Engine
This is Rietveld 408576698