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

Unified Diff: components/keyed_service/core/keyed_service_base_factory.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: components/keyed_service/core/keyed_service_base_factory.cc
diff --git a/components/keyed_service/core/keyed_service_base_factory.cc b/components/keyed_service/core/keyed_service_base_factory.cc
index ddaf49740d6807c3568ffcac43557da6204e724b..7157c0eb234e99fcdf7e91d5ec8f3885c7d7feab 100644
--- a/components/keyed_service/core/keyed_service_base_factory.cc
+++ b/components/keyed_service/core/keyed_service_base_factory.cc
@@ -6,10 +6,13 @@
#include "base/prefs/pref_service.h"
#include "base/supports_user_data.h"
+#include "base/trace_event/trace_event.h"
#include "components/keyed_service/core/dependency_manager.h"
void KeyedServiceBaseFactory::RegisterUserPrefsOnContextForTest(
base::SupportsUserData* context) {
+ TRACE_EVENT0("browser,startup",
+ "KeyedServiceBaseFactory::RegisterUserPrefsOnContextForTest");
// Safe timing for pref registration is hard. Previously, we made
// context responsible for all pref registration on every service
// that used contexts. Now we don't and there are timing issues.

Powered by Google App Engine
This is Rietveld 408576698