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

Unified Diff: components/history/core/browser/top_sites_backend.h

Issue 1005873011: Only record the execution time during startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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/history/core/browser/top_sites_backend.h
diff --git a/components/history/core/browser/top_sites_backend.h b/components/history/core/browser/top_sites_backend.h
index d3c054b81032026a27077b0837323c028fba7eaf..9d4d94915e88cfca01d9304f225888fa222c0b11 100644
--- a/components/history/core/browser/top_sites_backend.h
+++ b/components/history/core/browser/top_sites_backend.h
@@ -45,7 +45,10 @@ class TopSitesBackend : public base::RefCountedThreadSafe<TopSitesBackend> {
base::CancelableTaskTracker* tracker);
// Updates top sites database from the specified delta.
- void UpdateTopSites(const TopSitesDelta& delta);
+ // The bool param is used for knowing whether this function is called during
+ // startup or not, thus histogram value could be recorded accordingly.
+ // TODO(yiyaoliu): Remove this when crbug/223430 is fixed.
+ void UpdateTopSites(const TopSitesDelta& delta, bool startup);
// Sets the thumbnail.
void SetPageThumbnail(const MostVisitedURL& url,
@@ -77,7 +80,10 @@ class TopSitesBackend : public base::RefCountedThreadSafe<TopSitesBackend> {
scoped_refptr<MostVisitedThumbnails> thumbnails);
// Updates top sites.
- void UpdateTopSitesOnDBThread(const TopSitesDelta& delta);
+ // The bool param is used for knowing whether this function is called during
+ // startup or not, thus histogram value could be recorded accordingly.
+ // TODO(yiyaoliu): Remove this when crbug/223430 is fixed.
+ void UpdateTopSitesOnDBThread(const TopSitesDelta& delta, bool startup);
// Sets the thumbnail.
void SetPageThumbnailOnDBThread(const MostVisitedURL& url,

Powered by Google App Engine
This is Rietveld 408576698