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

Issue 10316020: Remove WebContentsImpl::OnDidRedirectProvisionalLoad. (Closed)

Created:
8 years, 7 months ago by Deprecated (see juliatuttle)
Modified:
8 years, 6 months ago
Reviewers:
cbentzel, Charlie Reis, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Remove WebContentsImpl::OnDidRedirectProvisionalLoad. Also remove the associated ViewHostMsg, and remove RenderViewImpl::didReceiveServerRedirectForProvisonalLoad, since it only served to send that message. BUG=78512 TEST=builds; cbentzel will try Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141066

Patch Set 1 #

Patch Set 2 : Also fix unit test that referenced ViewHostMsg_DidRedirectProvisionalLoad #

Total comments: 1

Patch Set 3 : Also remove ProvisionalChangeToMainFrameUrl #

Patch Set 4 : ...and remove from WebContentsObserver. #

Total comments: 1

Patch Set 5 : Listen for RESOURCE_RECEIVED_REDIRET in PrerenderTabHelper #

Total comments: 4

Patch Set 6 : Move redirect handling into a helper method. #

Total comments: 3

Patch Set 7 : Fix nits. #

Total comments: 2

Patch Set 8 : Don't break unittest #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : rebase :3 #

Patch Set 11 : rebase] #

Total comments: 1

Patch Set 12 : Fix indentation #

Patch Set 13 : Fix botched rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -123 lines) Patch
M chrome/browser/prerender/prerender_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +37 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -11 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -54 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -7 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -19 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
cbentzel
You have to do "Publish+Mail Comments" to add reviewers. Otherwise it won't show up in ...
8 years, 7 months ago (2012-05-03 19:12:27 UTC) #1
Deprecated (see juliatuttle)
8 years, 7 months ago (2012-05-03 19:13:05 UTC) #2
Deprecated (see juliatuttle)
Done. On Thu, May 3, 2012 at 3:12 PM, <cbentzel@chromium.org> wrote: > You have to ...
8 years, 7 months ago (2012-05-03 19:13:57 UTC) #3
cbentzel
Initial thought - it looks like you did remove the OnDidRedirectProvisionalLoad hooks correctly functionality, but ...
8 years, 7 months ago (2012-05-03 19:56:45 UTC) #4
cbentzel
One other nit - you can just do BUG=78512
8 years, 7 months ago (2012-05-03 19:57:14 UTC) #5
cbentzel
On 2012/05/03 19:57:14, cbentzel wrote: > One other nit - you can just do BUG=78512 ...
8 years, 7 months ago (2012-05-05 00:18:35 UTC) #6
cbentzel
http://codereview.chromium.org/10316020/diff/6001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (left): http://codereview.chromium.org/10316020/diff/6001/content/browser/web_contents/web_contents_impl.cc#oldcode1556 content/browser/web_contents/web_contents_impl.cc:1556: ProvisionalChangeToMainFrameUrl(validated_target_url, You should remove ProvisionalChangeToMainFrameUrl in this CL.
8 years, 7 months ago (2012-05-08 04:29:09 UTC) #7
cbentzel
And sorry for my super-slow turnaround time on this CL. You may want to ask ...
8 years, 7 months ago (2012-05-08 04:38:40 UTC) #8
Deprecated (see juliatuttle)
Hey, I removed ProvisionalChangeToMainFrameUrl. Please take a look now.
8 years, 7 months ago (2012-05-14 22:24:52 UTC) #9
cbentzel
THe method should also be removed from WebContentsObserver
8 years, 7 months ago (2012-05-15 17:33:06 UTC) #10
Deprecated (see juliatuttle)
Argh. I could've *sworn* I removed that. I remember removing it. Oh well. Done.
8 years, 7 months ago (2012-05-15 18:16:25 UTC) #11
cbentzel
This comment is for myself. I am not sure if you can get away with ...
8 years, 7 months ago (2012-05-15 20:26:58 UTC) #12
cbentzel
OK, as I discussed with you in person, I think the fastest way to get ...
8 years, 7 months ago (2012-05-16 00:53:01 UTC) #13
Deprecated (see juliatuttle)
Now listens for RESOURCE_RECEIVED_REDIRET in PrerenderTabHelper. Not tested, because there are no tests for it, ...
8 years, 7 months ago (2012-05-17 17:24:35 UTC) #14
cbentzel
Thanks. LGTM. You'll also need OWNERS approval from other folks, and I will also run ...
8 years, 7 months ago (2012-05-17 17:42:39 UTC) #15
cbentzel
creis+jam: I already looked through this and it looks good. Will need OWNERS approval for ...
8 years, 7 months ago (2012-05-17 17:44:27 UTC) #16
Deprecated (see juliatuttle)
PTAL. http://codereview.chromium.org/10316020/diff/13003/chrome/browser/prerender/prerender_tab_helper.cc File chrome/browser/prerender/prerender_tab_helper.cc (right): http://codereview.chromium.org/10316020/diff/13003/chrome/browser/prerender/prerender_tab_helper.cc#newcode281 chrome/browser/prerender/prerender_tab_helper.cc:281: url_ = resource_redirect_details->new_url; On 2012/05/17 17:42:39, cbentzel wrote: ...
8 years, 7 months ago (2012-05-17 18:42:20 UTC) #17
cbentzel
http://codereview.chromium.org/10316020/diff/18002/chrome/browser/prerender/prerender_tab_helper.cc File chrome/browser/prerender/prerender_tab_helper.cc (right): http://codereview.chromium.org/10316020/diff/18002/chrome/browser/prerender/prerender_tab_helper.cc#newcode270 chrome/browser/prerender/prerender_tab_helper.cc:270: void PrerenderTabHelper::HandleResourceReceivedRedirect(const GURL& new_url) { Nit: the definitions should ...
8 years, 7 months ago (2012-05-17 18:52:05 UTC) #18
jam
lgtm
8 years, 7 months ago (2012-05-17 23:13:17 UTC) #19
Charlie Reis
Thanks for taking care of this. Can we keep a possibly updated version of the ...
8 years, 7 months ago (2012-05-17 23:42:55 UTC) #20
cbentzel
http://codereview.chromium.org/10316020/diff/18003/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (left): http://codereview.chromium.org/10316020/diff/18003/content/browser/web_contents/navigation_controller_impl_unittest.cc#oldcode494 content/browser/web_contents/navigation_controller_impl_unittest.cc:494: // http://crbug.com/83031. On 2012/05/17 23:42:55, creis wrote: > This ...
8 years, 7 months ago (2012-05-18 00:23:57 UTC) #21
Deprecated (see juliatuttle)
On 2012/05/18 00:23:57, cbentzel wrote: > http://codereview.chromium.org/10316020/diff/18003/content/browser/web_contents/navigation_controller_impl_unittest.cc > File content/browser/web_contents/navigation_controller_impl_unittest.cc (left): > > http://codereview.chromium.org/10316020/diff/18003/content/browser/web_contents/navigation_controller_impl_unittest.cc#oldcode494 > ...
8 years, 7 months ago (2012-05-18 19:59:22 UTC) #22
Deprecated (see juliatuttle)
PTAL.
8 years, 6 months ago (2012-05-30 22:22:47 UTC) #23
Charlie Reis
https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (left): https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc#oldcode526 content/browser/web_contents/navigation_controller_impl_unittest.cc:526: kRedirectURL)); // new url I don't understand. Doesn't this ...
8 years, 6 months ago (2012-05-30 22:43:31 UTC) #24
mmenke
https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (left): https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc#oldcode526 content/browser/web_contents/navigation_controller_impl_unittest.cc:526: kRedirectURL)); // new url On 2012/05/30 22:43:31, creis wrote: ...
8 years, 6 months ago (2012-05-30 22:50:43 UTC) #25
Charlie Reis
On 2012/05/30 22:50:43, Matt Menke wrote: > After this CL, the NavigationController will no longer ...
8 years, 6 months ago (2012-05-31 16:11:10 UTC) #26
Charlie Reis
https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (left): https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc#oldcode526 content/browser/web_contents/navigation_controller_impl_unittest.cc:526: kRedirectURL)); // new url On 2012/05/30 22:50:43, Matt Menke ...
8 years, 6 months ago (2012-05-31 16:56:26 UTC) #27
mmenke
One option would be to switch to a BrowserTest, and go through the whole redirect ...
8 years, 6 months ago (2012-05-31 17:19:38 UTC) #28
Deprecated (see juliatuttle)
https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/10316020/diff/26001/content/browser/web_contents/navigation_controller_impl_unittest.cc#newcode524 content/browser/web_contents/navigation_controller_impl_unittest.cc:524: //EXPECT_EQ(kNewURL, controller.GetPendingEntry()->GetURL()); On 2012/05/31 16:56:27, creis wrote: > On ...
8 years, 6 months ago (2012-05-31 18:16:24 UTC) #29
Charlie Reis
Thanks, LGTM.
8 years, 6 months ago (2012-05-31 18:21:46 UTC) #30
cbentzel
Thanks for confirming this, Charlie. I'll run a try job first. After that, Thomas, I ...
8 years, 6 months ago (2012-05-31 18:26:02 UTC) #31
cbentzel
Thomas - you'll need to merge/rebase relative to trunk.
8 years, 6 months ago (2012-06-01 13:50:16 UTC) #32
Deprecated (see juliatuttle)
PTAL.
8 years, 6 months ago (2012-06-05 20:24:32 UTC) #33
cbentzel
LGTM http://codereview.chromium.org/10316020/diff/41001/chrome/browser/prerender/prerender_tab_helper.cc File chrome/browser/prerender/prerender_tab_helper.cc (right): http://codereview.chromium.org/10316020/diff/41001/chrome/browser/prerender/prerender_tab_helper.cc#newcode259 chrome/browser/prerender/prerender_tab_helper.cc:259: int type, Nit: these arguments should only be ...
8 years, 6 months ago (2012-06-06 14:54:42 UTC) #34
Deprecated (see juliatuttle)
Fixed indentation; am I good to commit this?
8 years, 6 months ago (2012-06-07 02:02:32 UTC) #35
cbentzel
On 2012/06/07 02:02:32, ttuttle wrote: > Fixed indentation; am I good to commit this? Yes. ...
8 years, 6 months ago (2012-06-07 02:12:53 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/10316020/41004
8 years, 6 months ago (2012-06-07 17:14:41 UTC) #37
commit-bot: I haz the power
Try job failure for 10316020-41004 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-07 17:30:52 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/10316020/45004
8 years, 6 months ago (2012-06-07 18:01:17 UTC) #39
commit-bot: I haz the power
8 years, 6 months ago (2012-06-07 19:49:21 UTC) #40
Change committed as 141066

Powered by Google App Engine
This is Rietveld 408576698