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

Issue 845013002: Remove TopSites notification in favor of Observers (Closed)

Created:
5 years, 11 months ago by sdefresne
Modified:
5 years, 11 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, nshaik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove TopSites notification in favor of Observers Remove obsolete notification NOTIFICATION_TOP_SITES_LOADED as no code was registering to receive it. Port all clients of notification NOTIFICATION_TOP_SITES_CHANGED to instead be history::TopSitesObserver and remove the notification that is no longer useful. ChromeHistoryClient is no longer a history::TopSitesObserver as it does not have to convert the events into notification. Remove the functionality and references to Profile and TopSites. BUG=373329 Committed: https://crrev.com/edf9e01f8765025276e2c7090d49dde7afd24e18 Cr-Commit-Position: refs/heads/master@{#311311}

Patch Set 1 #

Patch Set 2 : Remove NOTIFICATION_TOP_SITES_CHANGED #

Patch Set 3 : Fix win compilation #

Patch Set 4 : Fixing typo causing compilation issues on win #

Total comments: 1

Patch Set 5 : Address nits #

Total comments: 4

Patch Set 6 : Address comments #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -261 lines) Patch
M chrome/browser/android/most_visited_sites.h View 1 2 3 4 5 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/android/most_visited_sites.cc View 1 6 chunks +14 lines, -18 lines 0 comments Download
M chrome/browser/chrome_notification_types.h View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/history/chrome_history_client.h View 1 2 3 4 5 3 chunks +2 lines, -26 lines 0 comments Download
M chrome/browser/history/chrome_history_client.cc View 1 2 3 4 5 3 chunks +4 lines, -31 lines 0 comments Download
M chrome/browser/history/chrome_history_client_factory.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/history/top_sites.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/top_sites_impl_unittest.cc View 1 2 9 chunks +6 lines, -56 lines 0 comments Download
M chrome/browser/jumplist_win.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/jumplist_win.cc View 1 2 3 4 5 4 chunks +19 lines, -23 lines 0 comments Download
M chrome/browser/search/instant_service.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/search/instant_service.cc View 1 4 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/frame/global_menu_bar_x11.h View 1 5 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/global_menu_bar_x11.cc View 1 5 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.h View 1 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 5 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_page_handler.h View 1 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_page_handler.cc View 1 5 chunks +8 lines, -11 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
sdefresne
droger: please take a look.
5 years, 11 months ago (2015-01-10 00:59:12 UTC) #2
droger
lgtm
5 years, 11 months ago (2015-01-12 10:06:49 UTC) #3
sdefresne
OWNERS please review the following directories/files bauerb: - //chrome/browser/android - //chrome/browser/ui/webui/ntp samarth: - //chrome/browser/search erg: ...
5 years, 11 months ago (2015-01-12 15:37:46 UTC) #5
Bernhard Bauer
Android and WebUI LGTM with a nit: https://codereview.chromium.org/845013002/diff/60001/chrome/browser/android/most_visited_sites.h File chrome/browser/android/most_visited_sites.h (right): https://codereview.chromium.org/845013002/diff/60001/chrome/browser/android/most_visited_sites.h#newcode98 chrome/browser/android/most_visited_sites.h:98: // history::TopSites ...
5 years, 11 months ago (2015-01-12 15:44:03 UTC) #6
sky
LGTM with the following changes. https://codereview.chromium.org/845013002/diff/80001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): https://codereview.chromium.org/845013002/diff/80001/chrome/browser/jumplist_win.cc#newcode610 chrome/browser/jumplist_win.cc:610: history::TopSites* top_sites = profile_->GetTopSites(); ...
5 years, 11 months ago (2015-01-12 17:42:30 UTC) #7
Jay Civelli
LGTM for chrome/test/base/
5 years, 11 months ago (2015-01-12 18:13:22 UTC) #8
Elliot Glaysher
lgtm for global menu bar
5 years, 11 months ago (2015-01-12 18:18:54 UTC) #9
sdefresne
Thank you for the review. samarth: ping https://codereview.chromium.org/845013002/diff/80001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): https://codereview.chromium.org/845013002/diff/80001/chrome/browser/jumplist_win.cc#newcode610 chrome/browser/jumplist_win.cc:610: history::TopSites* top_sites ...
5 years, 11 months ago (2015-01-13 10:23:46 UTC) #10
samarth
lgtm lgtm
5 years, 11 months ago (2015-01-13 17:58:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845013002/120001
5 years, 11 months ago (2015-01-13 18:18:13 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-13 19:46:10 UTC) #14
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 19:47:57 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/edf9e01f8765025276e2c7090d49dde7afd24e18
Cr-Commit-Position: refs/heads/master@{#311311}

Powered by Google App Engine
This is Rietveld 408576698