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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_service.h

Issue 2423193003: [NTP Snippets] Add UMA for database load time (Closed)
Patch Set: ms Created 4 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
« no previous file with comments | « no previous file | components/ntp_snippets/remote/ntp_snippets_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/remote/ntp_snippets_service.h
diff --git a/components/ntp_snippets/remote/ntp_snippets_service.h b/components/ntp_snippets/remote/ntp_snippets_service.h
index af9c017bafbe1f0903c0e174b8afc768348eedfa..bfa4e2207068130606c09e0aa84b8cb4de83e053 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.h
+++ b/components/ntp_snippets/remote/ntp_snippets_service.h
@@ -15,6 +15,7 @@
#include "base/callback_forward.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "base/time/time.h"
#include "components/image_fetcher/image_fetcher_delegate.h"
#include "components/ntp_snippets/category.h"
#include "components/ntp_snippets/category_factory.h"
@@ -342,6 +343,7 @@ class NTPSnippetsService final : public ContentSuggestionsProvider,
// The database for persisting snippets.
std::unique_ptr<NTPSnippetsDatabase> database_;
+ base::TimeTicks database_load_start_;
// The service that provides events and data about the signin and sync state.
std::unique_ptr<NTPSnippetsStatusService> snippets_status_service_;
« no previous file with comments | « no previous file | components/ntp_snippets/remote/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698