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

Issue 565263005: Remove the use of ProvisionalChangeToMainFrameUrl from prerender code. (Closed)

Created:
6 years, 3 months ago by Avi (use Gerrit)
Modified:
6 years, 3 months ago
Reviewers:
cbentzel, davidben, tburkard
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, davidben+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@redirsupervised
Project:
chromium
Visibility:
Public.

Description

Remove the use of ProvisionalChangeToMainFrameUrl from prerender code. BUG=78512 TEST=no change Committed: https://crrev.com/b0aa1fb52e46b9c6580227c856ec4e063bb57799 Cr-Commit-Position: refs/heads/master@{#296183}

Patch Set 1 #

Patch Set 2 : main frame only #

Patch Set 3 : test #

Total comments: 2

Patch Set 4 : better? #

Total comments: 13

Patch Set 5 : better #

Total comments: 2

Patch Set 6 : fixing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -23 lines) Patch
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 2 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 1 2 3 4 5 3 chunks +22 lines, -12 lines 0 comments Download

Messages

Total messages: 29 (4 generated)
Avi (use Gerrit)
I fixed the test by altering the expectations. That sounds horrible so let me explain. ...
6 years, 3 months ago (2014-09-14 20:17:55 UTC) #2
Avi (use Gerrit)
David, thoughts?
6 years, 3 months ago (2014-09-15 15:09:30 UTC) #4
cbentzel
+tburkard I need to think this through some more. Or probably the other reviewers are ...
6 years, 3 months ago (2014-09-16 00:33:41 UTC) #6
tburkard
I don't think this will work, because ProvisionalChangeToMainFrameUrl does not just happen on a redirect, ...
6 years, 3 months ago (2014-09-16 12:58:01 UTC) #7
Avi (use Gerrit)
On 2014/09/16 12:58:01, tburkard wrote: > I don't think this will work, because ProvisionalChangeToMainFrameUrl does ...
6 years, 3 months ago (2014-09-16 16:43:35 UTC) #8
tburkard
both On Tue, Sep 16, 2014 at 6:43 PM, <avi@chromium.org> wrote: > On 2014/09/16 12:58:01, ...
6 years, 3 months ago (2014-09-16 18:16:10 UTC) #9
davidben
I still need to take the time to review the other use (sorry, been swamped ...
6 years, 3 months ago (2014-09-16 18:51:45 UTC) #10
Avi (use Gerrit)
On 2014/09/16 18:51:45, David Benjamin wrote: > I still need to take the time to ...
6 years, 3 months ago (2014-09-16 19:52:44 UTC) #11
Avi (use Gerrit)
tburkard: Duplicated the code into PrerenderTabHelper::DidStartProvisionalLoadForFrame. davidben: Removed the code from PrerenderManager, as mentioned. cbentzel: ...
6 years, 3 months ago (2014-09-16 21:03:08 UTC) #12
tburkard
https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (left): https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc#oldcode1103 chrome/browser/prerender/prerender_manager.cc:1103: if (url != url_) How about this logic here? ...
6 years, 3 months ago (2014-09-17 14:19:43 UTC) #13
tburkard
https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (left): https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc#oldcode1103 chrome/browser/prerender/prerender_manager.cc:1103: if (url != url_) On 2014/09/17 14:19:42, tburkard wrote: ...
6 years, 3 months ago (2014-09-17 14:21:02 UTC) #14
davidben
This lgtm, but you should probably also wait for Timo too, particularly since I was ...
6 years, 3 months ago (2014-09-17 15:08:31 UTC) #15
tburkard
https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (left): https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc#oldcode1103 chrome/browser/prerender/prerender_manager.cc:1103: if (url != url_) On 2014/09/17 15:08:30, David Benjamin ...
6 years, 3 months ago (2014-09-18 09:36:04 UTC) #16
Avi (use Gerrit)
> I'm curious why removing this hook is needed for your navigation work. ProvisionalChangeToMainFrameUrl is ...
6 years, 3 months ago (2014-09-18 21:00:21 UTC) #17
davidben
https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (left): https://codereview.chromium.org/565263005/diff/60001/chrome/browser/prerender/prerender_manager.cc#oldcode1103 chrome/browser/prerender/prerender_manager.cc:1103: if (url != url_) On 2014/09/18 09:36:04, tburkard wrote: ...
6 years, 3 months ago (2014-09-18 22:14:21 UTC) #18
davidben
On 2014/09/18 21:00:21, Avi wrote: > > I'm curious why removing this hook is needed ...
6 years, 3 months ago (2014-09-18 22:47:34 UTC) #19
Avi (use Gerrit)
I returned the callback to the PrerenderManager, and unified the code in the PrerenderTabHelper. Timo: ...
6 years, 3 months ago (2014-09-22 18:52:53 UTC) #20
davidben
On 2014/09/22 18:52:53, Avi wrote: > I returned the callback to the PrerenderManager, and unified ...
6 years, 3 months ago (2014-09-22 19:09:14 UTC) #21
davidben
Oof. Sorry, spoke too soon. https://codereview.chromium.org/565263005/diff/80001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/565263005/diff/80001/chrome/browser/prerender/prerender_manager.cc#newcode1099 chrome/browser/prerender/prerender_manager.cc:1099: const content::ResourceRedirectDetails& details) { ...
6 years, 3 months ago (2014-09-22 19:13:16 UTC) #22
Avi (use Gerrit)
https://codereview.chromium.org/565263005/diff/80001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/565263005/diff/80001/chrome/browser/prerender/prerender_manager.cc#newcode1099 chrome/browser/prerender/prerender_manager.cc:1099: const content::ResourceRedirectDetails& details) { On 2014/09/22 19:13:16, David Benjamin ...
6 years, 3 months ago (2014-09-22 19:54:24 UTC) #23
tburkard
lgtm
6 years, 3 months ago (2014-09-23 08:55:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/565263005/100001
6 years, 3 months ago (2014-09-23 14:27:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/565263005/100001
6 years, 3 months ago (2014-09-23 14:27:53 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001) as cff578772dc2728b2d2f429a629f0c6c122fa4e4
6 years, 3 months ago (2014-09-23 14:41:06 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 14:41:46 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b0aa1fb52e46b9c6580227c856ec4e063bb57799
Cr-Commit-Position: refs/heads/master@{#296183}

Powered by Google App Engine
This is Rietveld 408576698