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

Issue 2570783003: [Popular Sites] Split PopularSites interface and PopularSitesImpl (Closed)

Created:
4 years ago by mastiz
Modified:
4 years ago
CC:
chromium-reviews, pkl (ping after 24h if needed), ntp-dev+reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Popular Sites] Split PopularSites interface and PopularSitesImpl The introduction of an interface allows dependent classes (MostVisitedSites) to inject doubles in tests. BUG=619584 Committed: https://crrev.com/78efbde6ae8fa8409079dc0ef14eadf447ffd8d2 Cr-Commit-Position: refs/heads/master@{#438536}

Patch Set 1 #

Patch Set 2 : Fix build. #

Patch Set 3 : Reverted a few changes. #

Patch Set 4 : Split PopularSitesImpl. #

Total comments: 6

Patch Set 5 : Move debug methods to PopularSites interface. #

Patch Set 6 : Rebased an resolved conflicts. #

Patch Set 7 : Rebased and minor naming change. #

Patch Set 8 : Rebased and minor naming change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -88 lines) Patch
M chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_tiles/most_visited_sites.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M components/ntp_tiles/popular_sites.h View 1 2 3 4 5 6 7 4 chunks +46 lines, -28 lines 0 comments Download
M components/ntp_tiles/popular_sites.cc View 1 2 3 4 5 6 14 chunks +42 lines, -33 lines 0 comments Download
M components/ntp_tiles/popular_sites_unittest.cc View 11 chunks +17 lines, -17 lines 0 comments Download
M components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M components/ntp_tiles/webui/popular_sites_internals_message_handler.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ntp_tiles/ios_popular_sites_factory.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/prefs/browser_prefs.mm View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 67 (43 generated)
mastiz
Builds locally, bots running. I believe ready to review, thx.
4 years ago (2016-12-13 10:39:21 UTC) #18
sfiera
https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h File chrome/browser/android/ntp/popular_sites.h (right): https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h#newcode22 chrome/browser/android/ntp/popular_sites.h:22: static std::unique_ptr<ntp_tiles::PopularSitesImpl> NewForProfile( Should the factory be promising that ...
4 years ago (2016-12-13 10:53:58 UTC) #19
mastiz
https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h File chrome/browser/android/ntp/popular_sites.h (right): https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h#newcode22 chrome/browser/android/ntp/popular_sites.h:22: static std::unique_ptr<ntp_tiles::PopularSitesImpl> NewForProfile( On 2016/12/13 10:53:57, sfiera wrote: > ...
4 years ago (2016-12-13 12:14:56 UTC) #22
sfiera
https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h File chrome/browser/android/ntp/popular_sites.h (right): https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h#newcode22 chrome/browser/android/ntp/popular_sites.h:22: static std::unique_ptr<ntp_tiles::PopularSitesImpl> NewForProfile( On 2016/12/13 12:14:56, mastiz wrote: > ...
4 years ago (2016-12-13 12:30:27 UTC) #25
mastiz
https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h File chrome/browser/android/ntp/popular_sites.h (right): https://codereview.chromium.org/2570783003/diff/60001/chrome/browser/android/ntp/popular_sites.h#newcode22 chrome/browser/android/ntp/popular_sites.h:22: static std::unique_ptr<ntp_tiles::PopularSitesImpl> NewForProfile( On 2016/12/13 12:14:56, mastiz wrote: > ...
4 years ago (2016-12-13 12:31:53 UTC) #28
sfiera
LGTM Yes, putting them in the interface looks better to me.
4 years ago (2016-12-13 12:33:55 UTC) #29
mastiz
sdefresne@chromium.org: Please review changes in ios/ bauerb@chromium.org: Please review changes in chrome/browser Thanks!
4 years ago (2016-12-13 12:40:38 UTC) #31
sdefresne
ios/ lgtm (though it's a bit strange that both PopularSites & PopularSitesImpl are defined in ...
4 years ago (2016-12-13 13:07:20 UTC) #33
mastiz
On 2016/12/13 13:07:20, sdefresne wrote: > ios/ lgtm (though it's a bit strange that both ...
4 years ago (2016-12-13 13:09:20 UTC) #36
sfiera
I don't mind if that's handled in a later CL, but you will have to ...
4 years ago (2016-12-13 13:18:08 UTC) #37
Bernhard Bauer
android/ and prefs/ LGTM.
4 years ago (2016-12-13 16:02:51 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2570783003/80001
4 years ago (2016-12-14 12:17:33 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/325759)
4 years ago (2016-12-14 12:24:55 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2570783003/100001
4 years ago (2016-12-14 13:39:02 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/122722) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-14 13:43:48 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2570783003/140001
4 years ago (2016-12-14 14:26:49 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/332961)
4 years ago (2016-12-14 14:57:38 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2570783003/140001
4 years ago (2016-12-14 15:14:59 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/288781) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-14 15:29:15 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2570783003/140001
4 years ago (2016-12-14 15:34:02 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/279478)
4 years ago (2016-12-14 15:48:08 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2570783003/140001
4 years ago (2016-12-14 16:02:03 UTC) #62
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-14 17:07:40 UTC) #65
commit-bot: I haz the power
4 years ago (2016-12-14 17:10:04 UTC) #67
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/78efbde6ae8fa8409079dc0ef14eadf447ffd8d2
Cr-Commit-Position: refs/heads/master@{#438536}

Powered by Google App Engine
This is Rietveld 408576698