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

Issue 7034043: Prerender/Instant interopability. (Closed)

Created:
9 years, 7 months ago by dominich
Modified:
9 years, 7 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Prerender/Instant interopability. BUG=82590 TEST=Use instant to navigate to a page that is currently being prerendered. Observe it does not crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86651

Patch Set 1 #

Total comments: 6

Patch Set 2 : set up the new preview contents correctly. #

Patch Set 3 : Adding ShowPreview #

Patch Set 4 : Cleanup and consolidate code #

Total comments: 10

Patch Set 5 : Move the delegate implementation and do more old tc cleanup. #

Patch Set 6 : rebase #

Total comments: 10

Patch Set 7 : responding to comments #

Patch Set 8 : Immediate swap called if we're ready. #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -11 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +73 lines, -11 lines 0 comments Download
M chrome/browser/instant/instant_loader_delegate.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
dominich
9 years, 7 months ago (2011-05-18 23:46:22 UTC) #1
tburkard
LGTM
9 years, 7 months ago (2011-05-19 17:46:43 UTC) #2
dominich
9 years, 7 months ago (2011-05-19 17:50:43 UTC) #3
sreeram
LGTM But please check with @sky about possible effects (does the InstantLoader need to reset ...
9 years, 7 months ago (2011-05-19 18:05:08 UTC) #4
dominich
On 2011/05/19 18:05:08, sreeram wrote: > LGTM > > But please check with @sky about ...
9 years, 7 months ago (2011-05-19 18:12:18 UTC) #5
sky
http://codereview.chromium.org/7034043/diff/1/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/7034043/diff/1/chrome/browser/instant/instant_loader.cc#newcode150 chrome/browser/instant/instant_loader.cc:150: TabContentsWrapper* tab_contents_wrapper = preview_contents_.release(); ignore_result http://codereview.chromium.org/7034043/diff/1/chrome/browser/instant/instant_loader.cc#newcode152 chrome/browser/instant/instant_loader.cc:152: preview_contents_.reset(new_tc); I'm ...
9 years, 7 months ago (2011-05-19 19:53:55 UTC) #6
dominich
This fixes the crash, however there is an outstanding issue: The prerendered page is not ...
9 years, 7 months ago (2011-05-19 23:57:28 UTC) #7
dominich
Adding ShowPreview() was the key. Thanks sky. This should be complete now.
9 years, 7 months ago (2011-05-20 00:18:22 UTC) #8
sky
On Thu, May 19, 2011 at 4:57 PM, <dominich@chromium.org> wrote: > This fixes the crash, ...
9 years, 7 months ago (2011-05-20 14:18:13 UTC) #9
dominich
On 2011/05/20 14:18:13, sky wrote: > On Thu, May 19, 2011 at 4:57 PM, <mailto:dominich@chromium.org> ...
9 years, 7 months ago (2011-05-20 14:32:28 UTC) #10
sky
http://codereview.chromium.org/7034043/diff/8003/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (left): http://codereview.chromium.org/7034043/diff/8003/chrome/browser/instant/instant_loader.cc#oldcode998 chrome/browser/instant/instant_loader.cc:998: preview_contents_.reset(new TabContentsWrapper(new_contents)); You need to still install the delegate ...
9 years, 7 months ago (2011-05-20 15:57:36 UTC) #11
dominich
http://codereview.chromium.org/7034043/diff/8003/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/7034043/diff/8003/chrome/browser/instant/instant_loader.cc#newcode156 chrome/browser/instant/instant_loader.cc:156: old_tc->download_tab_helper()->set_delegate(NULL); On 2011/05/20 15:57:36, sky wrote: > unset it ...
9 years, 7 months ago (2011-05-20 16:39:53 UTC) #12
sky
http://codereview.chromium.org/7034043/diff/8003/chrome/browser/instant/instant_loader.h File chrome/browser/instant/instant_loader.h (right): http://codereview.chromium.org/7034043/diff/8003/chrome/browser/instant/instant_loader.h#newcode159 chrome/browser/instant/instant_loader.h:159: // Called to set up the preview_contents_ when it ...
9 years, 7 months ago (2011-05-20 18:54:19 UTC) #13
sky
http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc#newcode1035 chrome/browser/instant/instant_loader.cc:1035: ShowPreview(); On 2011/05/20 18:54:19, sky wrote: > If the ...
9 years, 7 months ago (2011-05-20 19:45:07 UTC) #14
dominich
http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc#newcode1021 chrome/browser/instant/instant_loader.cc:1021: old_tc->download_tab_helper()->set_delegate(NULL); On 2011/05/20 18:54:19, sky wrote: > Why do ...
9 years, 7 months ago (2011-05-20 23:22:33 UTC) #15
sky
http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc#newcode1021 chrome/browser/instant/instant_loader.cc:1021: old_tc->download_tab_helper()->set_delegate(NULL); On 2011/05/20 23:22:34, dominic wrote: > On 2011/05/20 ...
9 years, 7 months ago (2011-05-20 23:38:33 UTC) #16
dominich
On 2011/05/20 23:38:33, sky wrote: > http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc > File chrome/browser/instant/instant_loader.cc (right): > > http://codereview.chromium.org/7034043/diff/13002/chrome/browser/instant/instant_loader.cc#newcode1021 > ...
9 years, 7 months ago (2011-05-23 18:23:50 UTC) #17
sky
On Mon, May 23, 2011 at 11:23 AM, <dominich@chromium.org> wrote: > On 2011/05/20 23:38:33, sky ...
9 years, 7 months ago (2011-05-23 20:54:14 UTC) #18
dominich
On 2011/05/23 20:54:14, sky wrote: > On Mon, May 23, 2011 at 11:23 AM, <mailto:dominich@chromium.org> ...
9 years, 7 months ago (2011-05-23 20:55:54 UTC) #19
sky
On Mon, May 23, 2011 at 1:55 PM, <dominich@chromium.org> wrote: > On 2011/05/23 20:54:14, sky ...
9 years, 7 months ago (2011-05-23 21:04:16 UTC) #20
dominich
On 2011/05/23 21:04:16, sky wrote: > On Mon, May 23, 2011 at 1:55 PM, <mailto:dominich@chromium.org> ...
9 years, 7 months ago (2011-05-23 21:33:22 UTC) #21
sky
On Mon, May 23, 2011 at 2:33 PM, <dominich@chromium.org> wrote: > On 2011/05/23 21:04:16, sky ...
9 years, 7 months ago (2011-05-23 22:15:34 UTC) #22
dominich
On 2011/05/23 22:15:34, sky wrote: > On Mon, May 23, 2011 at 2:33 PM, <mailto:dominich@chromium.org> ...
9 years, 7 months ago (2011-05-23 23:02:15 UTC) #23
sky
You'll want something like the attached. Only invoke InstantLoaderSwappedTabContents if ready_, otherwise do the Show. ...
9 years, 7 months ago (2011-05-24 00:00:10 UTC) #24
dominich
9 years, 7 months ago (2011-05-24 04:50:58 UTC) #25
sky
LGTM, but how about a test for some coverage?
9 years, 7 months ago (2011-05-24 16:04:41 UTC) #26
dominich
On 2011/05/24 16:04:41, sky wrote: > LGTM, but how about a test for some coverage? ...
9 years, 7 months ago (2011-05-24 17:12:25 UTC) #27
commit-bot: I haz the power
Try job failure for 7034043-21007 on linux: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=28270
9 years, 7 months ago (2011-05-24 17:22:49 UTC) #28
commit-bot: I haz the power
Can't apply patch for file chrome/browser/instant/instant_loader.cc. patching file chrome/browser/instant/instant_loader.cc Hunk #5 FAILED at 1010. Hunk ...
9 years, 7 months ago (2011-05-25 15:59:36 UTC) #29
commit-bot: I haz the power
9 years, 7 months ago (2011-05-25 18:18:30 UTC) #30
Change committed as 86651

Powered by Google App Engine
This is Rietveld 408576698