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

Issue 6901110: GTK: Query TopSites for the Most Visited pages and populate fill in the global History menu. (Closed)

Created:
9 years, 8 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
sky, Evan Stade
CC:
chromium-reviews
Visibility:
Public.

Description

GTK: Query TopSites for the Most Visited pages and populate fill in the global History menu. Using TopSites means we'll only get updated on New Tab commands which will kick off the updating procedure, but this should be much less computation heavy than rebuilding on every history commit. BUG=30213 TEST=The Most Visited section on the History menu in the global menu bar is filled with the users TopSites, respecting banned websites, etc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83533

Patch Set 1 #

Patch Set 2 : Make TopSites broadcast its change notification on all blacklist/pinned url changes. #

Total comments: 6

Patch Set 3 : Rebase + Sort Headers + Comments #

Total comments: 2

Patch Set 4 : Ooops. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -19 lines) Patch
M chrome/browser/history/top_sites.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites.cc View 1 2 9 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/global_history_menu.h View 1 2 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/global_history_menu.cc View 1 2 3 6 chunks +62 lines, -7 lines 0 comments Download
M chrome/browser/ui/gtk/global_menu_bar.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Elliot Glaysher
estade: history menu stuff sky: top sites usage and modifications
9 years, 8 months ago (2011-04-28 22:18:53 UTC) #1
sky
http://codereview.chromium.org/6901110/diff/4/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6901110/diff/4/chrome/browser/history/top_sites.cc#newcode871 chrome/browser/history/top_sites.cc:871: ResetThreadSafeImageCache(); We need to set the images after the ...
9 years, 8 months ago (2011-04-28 22:31:43 UTC) #2
Evan Stade
http://codereview.chromium.org/6901110/diff/4/chrome/browser/ui/gtk/global_history_menu.cc File chrome/browser/ui/gtk/global_history_menu.cc (right): http://codereview.chromium.org/6901110/diff/4/chrome/browser/ui/gtk/global_history_menu.cc#newcode146 chrome/browser/ui/gtk/global_history_menu.cc:146: if (top_sites_) { should this be a dcheck? http://codereview.chromium.org/6901110/diff/4/chrome/browser/ui/gtk/global_history_menu.cc#newcode161 ...
9 years, 8 months ago (2011-04-28 22:38:47 UTC) #3
Evan Stade
http://codereview.chromium.org/6901110/diff/4/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6901110/diff/4/chrome/browser/history/top_sites.cc#newcode923 chrome/browser/history/top_sites.cc:923: NotificationType::TOP_SITES_CHANGED, p.s. this is something the most visited handler ...
9 years, 8 months ago (2011-04-28 22:40:21 UTC) #4
Elliot Glaysher
TAL? http://codereview.chromium.org/6901110/diff/4/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6901110/diff/4/chrome/browser/history/top_sites.cc#newcode871 chrome/browser/history/top_sites.cc:871: ResetThreadSafeImageCache(); On 2011/04/28 22:31:43, sky wrote: > We ...
9 years, 8 months ago (2011-04-28 23:08:35 UTC) #5
Evan Stade
http://codereview.chromium.org/6901110/diff/6001/chrome/browser/ui/gtk/global_history_menu.cc File chrome/browser/ui/gtk/global_history_menu.cc (right): http://codereview.chromium.org/6901110/diff/6001/chrome/browser/ui/gtk/global_history_menu.cc#newcode183 chrome/browser/ui/gtk/global_history_menu.cc:183: added_count++; isn't added_count the same as i?
9 years, 8 months ago (2011-04-28 23:19:35 UTC) #6
Elliot Glaysher
http://codereview.chromium.org/6901110/diff/6001/chrome/browser/ui/gtk/global_history_menu.cc File chrome/browser/ui/gtk/global_history_menu.cc (right): http://codereview.chromium.org/6901110/diff/6001/chrome/browser/ui/gtk/global_history_menu.cc#newcode183 chrome/browser/ui/gtk/global_history_menu.cc:183: added_count++; On 2011/04/28 23:19:35, Evan Stade wrote: > isn't ...
9 years, 8 months ago (2011-04-28 23:25:13 UTC) #7
sky
TopSites LGTM
9 years, 8 months ago (2011-04-28 23:25:36 UTC) #8
Evan Stade
9 years, 8 months ago (2011-04-28 23:30:42 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698