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

Issue 7538022: Jumplist Bug (Closed)

Created:
9 years, 4 months ago by Cait (Slow)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, estade+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Exposed the Notification Observer interface in jumplist_win, so that it could receive notifications and query TopSites for updates. Also, refactored jumplist (and a bit of browser_view) so that jumplist would properly handle receiving notifications from both TabService and TopSites. BUG=77756 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=97672

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 26

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 25

Patch Set 10 : '' #

Total comments: 2

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 7

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 8

Patch Set 16 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -206 lines) Patch
M chrome/browser/jumplist_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +56 lines, -9 lines 0 comments Download
M chrome/browser/jumplist_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +207 lines, -195 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
Cait (Slow)
9 years, 4 months ago (2011-08-05 17:34:09 UTC) #1
Evan Stade
JumpList should just hook into topsites. Jumplist is not a specialization of a most visited ...
9 years, 4 months ago (2011-08-05 18:39:05 UTC) #2
MAD
I don't understand... Aren't the most visited the top sites? What we were trying to ...
9 years, 4 months ago (2011-08-05 18:49:33 UTC) #3
Evan Stade
TopSites is a class in chrome/browser/history which handles the logic of picking top sites from ...
9 years, 4 months ago (2011-08-05 18:53:00 UTC) #4
MAD
OK, so it might just be a naming thing (though the top sites object seems ...
9 years, 4 months ago (2011-08-05 19:06:57 UTC) #5
Evan Stade
Why can't the code you want to share live in TopSites?
9 years, 4 months ago (2011-08-05 19:14:14 UTC) #6
MAD
We'll take a look, but it's all these notification hooks and parsing what top sites ...
9 years, 4 months ago (2011-08-05 19:18:05 UTC) #7
Evan Stade
topsites is already a layer on top of history, we don't need an additional layer ...
9 years, 4 months ago (2011-08-05 19:22:21 UTC) #8
Cait (Slow)
I think if you do not want another layer then the best option is either ...
9 years, 4 months ago (2011-08-05 19:51:38 UTC) #9
MAD
Wait, I want to take a closer look first, let's see how they do it ...
9 years, 4 months ago (2011-08-05 20:02:40 UTC) #10
MAD
OK, so it seems like the code we were trying to share is simply duplicated ...
9 years, 4 months ago (2011-08-05 20:12:08 UTC) #11
Cait (Slow)
No worries. It looks like a pretty straightforward change. On 2011/08/05 20:12:08, MAD wrote: > ...
9 years, 4 months ago (2011-08-05 20:21:15 UTC) #12
Cait (Slow)
See Patch set 7 for refactored version: Reverted MostVisitedHandler and moved TopSites hooks to JumpList. ...
9 years, 4 months ago (2011-08-05 20:32:21 UTC) #13
Evan Stade
thank you http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc#newcode555 chrome/browser/jumplist_win.cc:555: &JumpList::OnMostVisitedURLsAvailable)); too much indent. Can this fit ...
9 years, 4 months ago (2011-08-05 20:39:03 UTC) #14
Cait (Slow)
done. On 2011/08/05 20:39:03, Evan Stade wrote: > thank you > > http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc > File ...
9 years, 4 months ago (2011-08-05 21:19:39 UTC) #15
MAD
Some more style and other comments... Well done! BYE MAD http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc#newcode485 ...
9 years, 4 months ago (2011-08-05 21:21:43 UTC) #16
Cait (Slow)
Revised according to MAD's comments http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): http://codereview.chromium.org/7538022/diff/13006/chrome/browser/jumplist_win.cc#newcode721 chrome/browser/jumplist_win.cc:721: this->AddRef(); On 2011/08/05 21:21:43, ...
9 years, 4 months ago (2011-08-05 22:49:16 UTC) #17
Evan Stade
LGTM
9 years, 4 months ago (2011-08-08 20:45:19 UTC) #18
MAD
A few more comments... http://codereview.chromium.org/7538022/diff/22001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (left): http://codereview.chromium.org/7538022/diff/22001/chrome/browser/jumplist_win.cc#oldcode577 chrome/browser/jumplist_win.cc:577: JumpList::JumpList() : profile_(NULL) { We ...
9 years, 4 months ago (2011-08-15 16:16:16 UTC) #19
Cait (Slow)
Updated as per MAD's comments, except for the AddRef issue (see comment). http://codereview.chromium.org/7538022/diff/22001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc ...
9 years, 4 months ago (2011-08-15 19:44:44 UTC) #20
MAD
I'd be curious to see this error... I can't see what we are doing wrong ...
9 years, 4 months ago (2011-08-15 20:18:54 UTC) #21
MAD
OK, I just tried it, and the problem is not the missing AddRef(), it's the ...
9 years, 4 months ago (2011-08-15 21:41:31 UTC) #22
MAD
I think you missed the series of comments I made in the jumplist header file... ...
9 years, 4 months ago (2011-08-15 21:52:42 UTC) #23
Cait (Slow)
Hi MAD, Thanks for the suggestions. I tried adding a terminate() method in JumpList (currently ...
9 years, 4 months ago (2011-08-16 00:08:46 UTC) #24
MAD
Yeah, I think we need to find how to make sure we don't remove observers ...
9 years, 4 months ago (2011-08-16 14:36:14 UTC) #25
Cait (Slow)
So turns out that I forgot to build the last fix (the terminate method) I ...
9 years, 4 months ago (2011-08-16 15:34:03 UTC) #26
MAD
Almost there... Just a few more style nit picks... Thanks! BYE MAD http://codereview.chromium.org/7538022/diff/28004/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc ...
9 years, 4 months ago (2011-08-16 17:02:30 UTC) #27
Cait (Slow)
Fixed remaining style issues and added code to handle profile destruction issues. If all looks ...
9 years, 4 months ago (2011-08-18 20:06:24 UTC) #28
MAD
A few more style nits to fix, but no real code change needed, so I ...
9 years, 4 months ago (2011-08-19 14:46:03 UTC) #29
Cait (Slow)
done. On 2011/08/19 14:46:03, MAD wrote: > A few more style nits to fix, but ...
9 years, 4 months ago (2011-08-19 15:50:44 UTC) #30
MAD
LGTM... I hit the commit box even though not try bots have run for this ...
9 years, 4 months ago (2011-08-22 13:51:15 UTC) #31
commit-bot: I haz the power
9 years, 4 months ago (2011-08-22 17:21:20 UTC) #32
Change committed as 97672

Powered by Google App Engine
This is Rietveld 408576698