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

Unified Diff: components/search_engines/template_url_service.cc

Issue 647123002: Adding instrumentation to locate the source of jankiness. (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: components/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index b56e1b5c8ffa114efd16ec203fbfa82c79367c39..6fbe239cc75b1edca74f2b9b5091f716fb3ef292 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -15,6 +15,7 @@
#include "base/memory/scoped_vector.h"
#include "base/metrics/histogram.h"
#include "base/prefs/pref_service.h"
+#include "base/profiler/scoped_profile.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
@@ -825,6 +826,11 @@ scoped_ptr<TemplateURLService::Subscription>
void TemplateURLService::OnWebDataServiceRequestDone(
KeywordWebDataService::Handle h,
const WDTypedResult* result) {
+ // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed.
+ tracked_objects::ScopedProfile tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "422460 TemplateURLService::OnWebDataServiceRequestDone"));
+
// Reset the load_handle so that we don't try and cancel the load in
// the destructor.
load_handle_ = 0;

Powered by Google App Engine
This is Rietveld 408576698