Chromium Code Reviews| 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); |
|
sky
2015/03/31 23:58:49
Same thing about an enum here too.
yao
2015/04/01 21:43:00
Done.
|
| // 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, |