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

Unified Diff: components/suggestions/suggestions_service.cc

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Created 5 years, 4 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/suggestions/suggestions_service.cc
diff --git a/components/suggestions/suggestions_service.cc b/components/suggestions/suggestions_service.cc
index 666ee51bcc3b01208fb16bdec746ae7fa2fb0700..27e1c3de7f270b925a61016350b9e26ae5f4044d 100644
--- a/components/suggestions/suggestions_service.cc
+++ b/components/suggestions/suggestions_service.cc
@@ -267,6 +267,9 @@ void SuggestionsService::OnURLFetchComplete(const net::URLFetcher* source) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK_EQ(pending_request_.get(), source);
+ // Before deleting the request we record traffic use of this service
bengr 2015/08/07 18:00:01 // Before deleting the request, record the data us
amohammadkhan 2015/08/11 22:04:36 Done.
+ pending_request_->ReportYourUsage("Suggestion");
+
// The fetcher will be deleted when the request is handled.
scoped_ptr<const net::URLFetcher> request(pending_request_.release());

Powered by Google App Engine
This is Rietveld 408576698