Chromium Code Reviews| Index: components/ntp_tiles/most_visited_sites.h |
| diff --git a/components/ntp_tiles/most_visited_sites.h b/components/ntp_tiles/most_visited_sites.h |
| index d097b1bc469974c307cf27518061f3737470e98d..0967ca66895b46eb6eaaf95f41eb6fb82d12afb0 100644 |
| --- a/components/ntp_tiles/most_visited_sites.h |
| +++ b/components/ntp_tiles/most_visited_sites.h |
| @@ -119,9 +119,13 @@ class MostVisitedSites : public history::TopSitesObserver, |
| static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| - private: |
| - friend class MostVisitedSitesTest; |
| + // Workhorse for SaveNewTiles. Implemented as a separate static and public |
| + // method for ease of testing. |
| + static NTPTilesVector MergeTiles(NTPTilesVector personal_tiles, |
| + NTPTilesVector whitelist_tiles, |
| + NTPTilesVector popular_tiles); |
|
Marc Treib
2016/12/13 16:44:15
I generally prefer "friend class ...Test" over exp
mastiz
2016/12/14 08:54:27
Yes, my preferences are: public API if not too ugl
Marc Treib
2016/12/14 09:27:34
Well, this exposes less internals to the test, but
mastiz
2016/12/14 09:40:29
This is a good topic to bring up to our testing di
|
| + private: |
| void BuildCurrentTiles(); |
| // Initialize the query to Top Sites. Called if the SuggestionsService |
| @@ -153,12 +157,6 @@ class MostVisitedSites : public history::TopSitesObserver, |
| // if appropriate, and saves the new tiles. |
| void SaveNewTiles(NTPTilesVector personal_tiles); |
| - // Workhorse for SaveNewTiles above. Implemented as a separate static method |
| - // for ease of testing. |
| - static NTPTilesVector MergeTiles(NTPTilesVector personal_tiles, |
| - NTPTilesVector whitelist_tiles, |
| - NTPTilesVector popular_tiles); |
| - |
| // Notifies the observer about the availability of tiles. |
| // Also records impressions UMA if not done already. |
| void NotifyMostVisitedURLsObserver(); |