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

Issue 15907006: Rip out browser-side RID caching for most visited items. (Closed)

Created:
7 years, 6 months ago by kmadhusu
Modified:
7 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, chromium-apps-reviews_chromium.org, gideonwald, dominich, Aaron Boodman, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, estade+watch_chromium.org, kmadhusu+watch_chromium.org, Jered, pedrosimonetti+watch_chromium.org, pedro (no code reviews)
Visibility:
Public.

Description

Rip out browser-side RID caching for most visited items. (1) Most visited thumbnails and favicons no longer require id-based urls. Updated ThumbnailSource and FaviconSource to serve requests of the form: chrome-search://favicon/<most_visited_item_favicon_url> chrome-search://thumb/<most_visited_item_thumbnail_url> (2) Removed |most_visited_items_cache_| from InstantIOContext and InstantService. (3) SearchTabHelper will track the last sent most visited items. This prevents duplicate most visited item related IPCs while switching tabs. BUG=239253, 225760, 242667 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205026

Patch Set 1 : '' #

Total comments: 20

Patch Set 2 : Addressed comments #

Total comments: 1

Patch Set 3 : Changed thumbnailURL and faviconURL format. #

Patch Set 4 : Use view_id/rid instead of view_id:rid in URL. #

Total comments: 6

Patch Set 5 : Addressed comments #

Total comments: 8

Patch Set 6 : Addressed nits #

Total comments: 12

Patch Set 7 : Addressed comments #

Patch Set 8 : Rebase #

Patch Set 9 : Addressed comments #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -284 lines) Patch
M chrome/browser/search/instant_io_context.h View 3 chunks +0 lines, -22 lines 0 comments Download
M chrome/browser/search/instant_io_context.cc View 1 3 chunks +1 line, -40 lines 0 comments Download
M chrome/browser/search/instant_service.h View 1 2 6 chunks +6 lines, -29 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 7 chunks +11 lines, -75 lines 0 comments Download
M chrome/browser/search/search.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 10 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 6 chunks +7 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source_unittest.cc View 1 2 chunks +3 lines, -33 lines 0 comments Download
M chrome/browser/ui/webui/ntp/thumbnail_source.h View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/ntp/thumbnail_source.cc View 1 2 chunks +3 lines, -33 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 2 chunks +21 lines, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +68 lines, -3 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +19 lines, -12 lines 0 comments Download
A chrome/renderer/searchbox/searchbox_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
kmadhusu
Jered: CL is ready for review. Still working on interactive ui tests. PTAL. Thanks.
7 years, 6 months ago (2013-05-30 18:27:47 UTC) #1
Jered
https://codereview.chromium.org/15907006/diff/22/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/15907006/diff/22/chrome/browser/search/instant_service.cc#newcode175 chrome/browser/search/instant_service.cc:175: std::vector<InstantMostVisitedItem> most_visited_items; Call this new_most_visited_items to make the distinction ...
7 years, 6 months ago (2013-05-31 17:34:33 UTC) #2
kmadhusu
Addressed comments. Initialized InstantRestictedIDCache::last_restricted_id_ to a random value. This fixes the MVI iframe issues. Once ...
7 years, 6 months ago (2013-06-04 02:36:01 UTC) #3
Jered
https://codereview.chromium.org/15907006/diff/39002/chrome/common/instant_restricted_id_cache.h File chrome/common/instant_restricted_id_cache.h (right): https://codereview.chromium.org/15907006/diff/39002/chrome/common/instant_restricted_id_cache.h#newcode90 chrome/common/instant_restricted_id_cache.h:90: last_restricted_id_(base::RandGenerator(kint32max)) { Let's try to fix this in a ...
7 years, 6 months ago (2013-06-04 16:09:48 UTC) #4
kmadhusu
On 2013/06/04 16:09:48, Jered wrote: > https://codereview.chromium.org/15907006/diff/39002/chrome/common/instant_restricted_id_cache.h > File chrome/common/instant_restricted_id_cache.h (right): > > https://codereview.chromium.org/15907006/diff/39002/chrome/common/instant_restricted_id_cache.h#newcode90 > ...
7 years, 6 months ago (2013-06-04 21:55:48 UTC) #5
sreeram
On 2013/06/04 21:55:48, kmadhusu wrote: > As we discussed, I changed the thumbnailURL and faviconURL ...
7 years, 6 months ago (2013-06-04 21:59:17 UTC) #6
kmadhusu
On 2013/06/04 21:59:17, sreeram wrote: > On 2013/06/04 21:55:48, kmadhusu wrote: > > As we ...
7 years, 6 months ago (2013-06-04 22:06:09 UTC) #7
Jered
lgtm This looks much better. I am pretty happy with all the Instant stuff and ...
7 years, 6 months ago (2013-06-04 23:19:19 UTC) #8
Jered
slgtm https://codereview.chromium.org/15907006/diff/50003/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/15907006/diff/50003/chrome/renderer/chrome_content_renderer_client.cc#newcode215 chrome/renderer/chrome_content_renderer_client.cc:215: bool GetInstantRestrictedIDFromURL(int render_view_id, I realized this function might ...
7 years, 6 months ago (2013-06-04 23:27:22 UTC) #9
kmadhusu
jered@: Addressed comments. Adding reviewers to do OWNER's check. estade@: chrome/browser/ui/webui/* changes. samarth@: chrome/browser/search/* changes. ...
7 years, 6 months ago (2013-06-05 00:48:29 UTC) #10
jam
lgtm https://codereview.chromium.org/15907006/diff/74001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/15907006/diff/74001/chrome/renderer/chrome_content_renderer_client.cc#newcode205 chrome/renderer/chrome_content_renderer_client.cc:205: content::RenderView* GetRenderViewFromWebFrame(WebKit::WebFrame* frame) { nit: no need for ...
7 years, 6 months ago (2013-06-05 16:36:01 UTC) #11
palmer
IPC security LGTM https://codereview.chromium.org/15907006/diff/74001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/15907006/diff/74001/chrome/browser/search/instant_service.cc#newcode188 chrome/browser/search/instant_service.cc:188: most_visited_items_)) Nit: I think the style ...
7 years, 6 months ago (2013-06-05 17:50:54 UTC) #12
kmadhusu
jam@, palmer@: Addressed comments. PTAL. Thanks. https://chromiumcodereview.appspot.com/15907006/diff/74001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://chromiumcodereview.appspot.com/15907006/diff/74001/chrome/browser/search/instant_service.cc#newcode188 chrome/browser/search/instant_service.cc:188: most_visited_items_)) On 2013/06/05 ...
7 years, 6 months ago (2013-06-05 18:40:38 UTC) #13
samarth
Awesome to see no more flashing! https://codereview.chromium.org/15907006/diff/87001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/15907006/diff/87001/chrome/browser/search/instant_service.cc#newcode187 chrome/browser/search/instant_service.cc:187: if (chrome::AreMostVisitedItemsEqual(new_most_visited_items, Is ...
7 years, 6 months ago (2013-06-05 22:59:04 UTC) #14
Evan Stade
webui lgtm
7 years, 6 months ago (2013-06-05 23:57:31 UTC) #15
kmadhusu
samarth@: Addressed comments. PTAL. Thanks. https://codereview.chromium.org/15907006/diff/87001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/15907006/diff/87001/chrome/browser/search/instant_service.cc#newcode187 chrome/browser/search/instant_service.cc:187: if (chrome::AreMostVisitedItemsEqual(new_most_visited_items, On 2013/06/05 ...
7 years, 6 months ago (2013-06-06 02:27:38 UTC) #16
samarth
LGTM It would also be nice to add an interactive UI test that did the ...
7 years, 6 months ago (2013-06-06 16:38:44 UTC) #17
kmadhusu
samarth@: Addressed comments. I will write an interactive ui test in a follow up CL ...
7 years, 6 months ago (2013-06-07 01:34:07 UTC) #18
samarth
(CC Pedro FYI since he'll need to update some of the URL parsing code for ...
7 years, 6 months ago (2013-06-07 01:43:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/15907006/135001
7 years, 6 months ago (2013-06-07 18:16:11 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/search/search_tab_helper.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-07 21:58:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/15907006/153001
7 years, 6 months ago (2013-06-07 23:15:12 UTC) #22
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=47791
7 years, 6 months ago (2013-06-08 00:59:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/15907006/153001
7 years, 6 months ago (2013-06-08 01:01:24 UTC) #24
commit-bot: I haz the power
7 years, 6 months ago (2013-06-08 05:13:38 UTC) #25
Message was sent while issue was closed.
Change committed as 205026

Powered by Google App Engine
This is Rietveld 408576698