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

Issue 441623002: Eliminate sending NOTIFICATION_TOP_SITES_* from TopSites (Closed)

Created:
6 years, 4 months ago by nshaik
Modified:
6 years, 3 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Eliminate sending NOTIFICATION_TOP_SITES_* from TopSites Add new interface TopSitesObserver. - add TopSitesLoaded method to TopSitesObserver - add TopSitesChanged method to TopSitesObserver - Make ChromeHistoryClient a TopSitesObserver. - Invoke the observer methods and ChromeHistoryClient will send the notification BUG=373329 TEST=unit_tests --gest_filter=TopSites*,ExpireHistoryTest* Committed: https://crrev.com/e091cc30ea46508e6f5edd3bf2169f32e4af31d5 Cr-Commit-Position: refs/heads/master@{#295398}

Patch Set 1 #

Total comments: 47

Patch Set 2 : Address review comments #

Total comments: 6

Patch Set 3 : Moving top_sites_observer to components #

Patch Set 4 : Add new file to gyp and gn #

Total comments: 2

Patch Set 5 : Fixing the commit message #

Total comments: 2

Patch Set 6 : Address review comments #

Patch Set 7 : Rebase to ToT #

Patch Set 8 : Fixing ExpireHistoryTest #

Patch Set 9 : Moving the WaitTopSitesLoadedObserver to testing_profile #

Total comments: 4

Patch Set 10 : Fix incorrect scoped_refptr handling #

Total comments: 1

Patch Set 11 : Add comment #

Patch Set 12 : Fix compilation error #

Patch Set 13 : Fix incorrect parmeter being passed in notification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -32 lines) Patch
M chrome/browser/history/chrome_history_client.h View 1 2 3 4 5 2 chunks +28 lines, -2 lines 0 comments Download
M chrome/browser/history/chrome_history_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +31 lines, -2 lines 0 comments Download
M chrome/browser/history/chrome_history_client_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/history/top_sites.h View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/history/top_sites.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites_impl.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/history/top_sites_impl.cc View 1 2 3 4 2 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/history/top_sites_impl_unittest.cc View 1 8 chunks +58 lines, -6 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +25 lines, -5 lines 0 comments Download
M components/history.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/history/core/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A components/history/core/browser/top_sites_observer.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (11 generated)
nshaik
@sky for: chrome/browser/history/chrome_history_client.cc chrome/browser/history/chrome_history_client.h chrome/browser/history/chrome_history_client_factory.cc chrome/browser/history/top_sites.cc chrome/browser/history/top_sites.h chrome/browser/history/top_sites_impl.cc chrome/browser/history/top_sites_impl.h chrome/browser/history/top_sites_impl_unittest.cc chrome/browser/history/top_sites_observer.h chrome/test/base/testing_profile.cc
6 years, 4 months ago (2014-08-04 03:36:46 UTC) #1
sdefresne
I think you're on a good track. https://codereview.chromium.org/441623002/diff/1/chrome/browser/history/chrome_history_client.cc File chrome/browser/history/chrome_history_client.cc (right): https://codereview.chromium.org/441623002/diff/1/chrome/browser/history/chrome_history_client.cc#newcode18 chrome/browser/history/chrome_history_client.cc:18: class Profile; ...
6 years, 4 months ago (2014-08-04 08:47:19 UTC) #2
nshaik
@sdefresne, Thanks for your comments. Please review. https://codereview.chromium.org/441623002/diff/1/chrome/browser/history/chrome_history_client.cc File chrome/browser/history/chrome_history_client.cc (right): https://codereview.chromium.org/441623002/diff/1/chrome/browser/history/chrome_history_client.cc#newcode18 chrome/browser/history/chrome_history_client.cc:18: class Profile; ...
6 years, 4 months ago (2014-08-05 06:38:04 UTC) #3
sdefresne
- sky, + brettw who is the proper OWNERS for //chrome/browser/history LGTM, please wait for ...
6 years, 4 months ago (2014-08-11 09:43:23 UTC) #4
sdefresne
I forgot to mention that you should move chrome/browser/history/top_sites_observer.h to component/history/core/browser/top_sites_observer.h (you can use tools/git/move_source_file.py ...
6 years, 4 months ago (2014-08-11 11:56:58 UTC) #5
sdefresne
https://codereview.chromium.org/441623002/diff/20001/chrome/browser/history/top_sites_observer.h File chrome/browser/history/top_sites_observer.h (right): https://codereview.chromium.org/441623002/diff/20001/chrome/browser/history/top_sites_observer.h#newcode1 chrome/browser/history/top_sites_observer.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
6 years, 4 months ago (2014-08-11 12:01:31 UTC) #6
nshaik
@brettw, Please review. Thanks. https://codereview.chromium.org/441623002/diff/20001/chrome/browser/history/top_sites_observer.h File chrome/browser/history/top_sites_observer.h (right): https://codereview.chromium.org/441623002/diff/20001/chrome/browser/history/top_sites_observer.h#newcode1 chrome/browser/history/top_sites_observer.h:1: // Copyright (c) 2013 The ...
6 years, 4 months ago (2014-08-13 05:40:46 UTC) #7
sdefresne
Still LGTM. nit: you should add reference to top_sites_observer.h to //components/history.gypi and //components/history/core/browser/BUILD.gn
6 years, 4 months ago (2014-08-13 09:33:54 UTC) #8
nshaik
On 2014/08/13 09:33:54, sdefresne wrote: > Still LGTM. > > nit: you should add reference ...
6 years, 4 months ago (2014-08-13 17:51:10 UTC) #9
Paweł Hajdan Jr.
chrome/test/base LGTM
6 years, 4 months ago (2014-08-14 11:26:16 UTC) #10
brettw
It looks like you're planning on porting the listeners one-at-a-time as described in the bug. ...
6 years, 4 months ago (2014-08-14 22:45:41 UTC) #11
nshaik
@brettw, fixed the commit message. Please review https://codereview.chromium.org/441623002/diff/60001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/441623002/diff/60001/chrome/browser/history/chrome_history_client.h#newcode48 chrome/browser/history/chrome_history_client.h:48: history::TopSites* top_sites_; ...
6 years, 4 months ago (2014-08-15 06:16:12 UTC) #12
sdefresne
On 2014/08/15 06:16:12, naiem.shaik wrote: > @brettw, > fixed the commit message. > Please review ...
6 years, 4 months ago (2014-08-19 17:15:56 UTC) #13
brettw
The commit message still is old. https://codereview.chromium.org/441623002/diff/80001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/441623002/diff/80001/chrome/browser/history/chrome_history_client.h#newcode48 chrome/browser/history/chrome_history_client.h:48: history::TopSites* top_sites_; Can ...
6 years, 4 months ago (2014-08-19 22:51:58 UTC) #14
nshaik
PTAL https://codereview.chromium.org/441623002/diff/80001/chrome/browser/history/chrome_history_client.h File chrome/browser/history/chrome_history_client.h (right): https://codereview.chromium.org/441623002/diff/80001/chrome/browser/history/chrome_history_client.h#newcode48 chrome/browser/history/chrome_history_client.h:48: history::TopSites* top_sites_; On 2014/08/19 22:51:58, brettw wrote: > ...
6 years, 4 months ago (2014-08-20 18:31:35 UTC) #15
nshaik
On 2014/08/20 18:31:35, naiem.shaik wrote: > PTAL > > https://codereview.chromium.org/441623002/diff/80001/chrome/browser/history/chrome_history_client.h > File chrome/browser/history/chrome_history_client.h (right): > ...
6 years, 4 months ago (2014-08-22 17:45:20 UTC) #16
nshaik
@brettw, PTAL
6 years, 3 months ago (2014-08-28 18:21:24 UTC) #17
brettw
Sorry, LGTM
6 years, 3 months ago (2014-08-29 16:12:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/441623002/100001
6 years, 3 months ago (2014-08-29 17:05:45 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-29 17:22:51 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/10496)
6 years, 3 months ago (2014-08-29 17:24:48 UTC) #23
nshaik
PTAL, re-based the changes.
6 years, 3 months ago (2014-08-29 23:11:15 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/441623002/120001
6 years, 3 months ago (2014-08-29 23:13:29 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-30 00:47:50 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/11647)
6 years, 3 months ago (2014-08-30 01:30:54 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/441623002/120001
6 years, 3 months ago (2014-09-01 12:47:46 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-01 14:15:28 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/11891)
6 years, 3 months ago (2014-09-01 15:02:51 UTC) #34
nshaik
@brettw for chrome/browser/history/expire_history_backend_unittest.cc PTAL
6 years, 3 months ago (2014-09-02 23:22:03 UTC) #35
nshaik
On 2014/09/02 23:22:03, naiem.shaik wrote: > @brettw for > chrome/browser/history/expire_history_backend_unittest.cc > > PTAL I am ...
6 years, 3 months ago (2014-09-03 17:36:17 UTC) #36
nshaik
@phajdan.jr PTAL chrome/test/base/testing_profile.cc
6 years, 3 months ago (2014-09-03 20:03:27 UTC) #37
sdefresne
Please fix the scoped_ptr issue in the unittest. https://codereview.chromium.org/441623002/diff/160001/chrome/browser/history/chrome_history_client_factory.cc File chrome/browser/history/chrome_history_client_factory.cc (right): https://codereview.chromium.org/441623002/diff/160001/chrome/browser/history/chrome_history_client_factory.cc#newcode38 chrome/browser/history/chrome_history_client_factory.cc:38: return ...
6 years, 3 months ago (2014-09-04 15:50:01 UTC) #38
nshaik
PTAL https://codereview.chromium.org/441623002/diff/160001/chrome/browser/history/chrome_history_client_factory.cc File chrome/browser/history/chrome_history_client_factory.cc (right): https://codereview.chromium.org/441623002/diff/160001/chrome/browser/history/chrome_history_client_factory.cc#newcode38 chrome/browser/history/chrome_history_client_factory.cc:38: return new ChromeHistoryClient( On 2014/09/04 15:50:01, sdefresne wrote: ...
6 years, 3 months ago (2014-09-04 18:43:01 UTC) #39
sdefresne
lgtm https://codereview.chromium.org/441623002/diff/180001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/441623002/diff/180001/chrome/test/base/testing_profile.cc#newcode120 chrome/test/base/testing_profile.cc:120: content::MessageLoopRunner* runner_; nit: add // weak
6 years, 3 months ago (2014-09-05 17:57:53 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/441623002/200001
6 years, 3 months ago (2014-09-05 21:03:01 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/63396)
6 years, 3 months ago (2014-09-05 21:31:29 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/441623002/220001
6 years, 3 months ago (2014-09-05 21:40:36 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/11511) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/13600)
6 years, 3 months ago (2014-09-05 23:00:17 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/441623002/240001
6 years, 3 months ago (2014-09-18 00:55:12 UTC) #50
commit-bot: I haz the power
Committed patchset #13 (id:240001) as 26a9f73c0a56d2eb538c97d0804e8c6693dadfe3
6 years, 3 months ago (2014-09-18 02:21:22 UTC) #51
commit-bot: I haz the power
Committed patchset #13 (id:240001) as 26a9f73c0a56d2eb538c97d0804e8c6693dadfe3
6 years, 3 months ago (2014-09-18 02:22:23 UTC) #52
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 02:32:16 UTC) #53
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/e091cc30ea46508e6f5edd3bf2169f32e4af31d5
Cr-Commit-Position: refs/heads/master@{#295398}

Powered by Google App Engine
This is Rietveld 408576698