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

Unified Diff: content/browser/web_contents/navigation_controller_impl_unittest.cc

Issue 10316020: Remove WebContentsImpl::OnDidRedirectProvisionalLoad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't break unittest Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/navigation_controller_impl_unittest.cc
diff --git a/content/browser/web_contents/navigation_controller_impl_unittest.cc b/content/browser/web_contents/navigation_controller_impl_unittest.cc
index b0b09a544e0d0def241b14566f98b45cf20755cb..c3d32614a508f36ec6ca6e03981a5fae8cc3667f 100644
--- a/content/browser/web_contents/navigation_controller_impl_unittest.cc
+++ b/content/browser/web_contents/navigation_controller_impl_unittest.cc
@@ -518,16 +518,10 @@ TEST_F(NavigationControllerTest, LoadURL_RedirectAbortCancelsPending) {
// Now the navigation redirects.
const GURL kRedirectURL("http://bee");
- test_rvh()->OnMessageReceived(
- ViewHostMsg_DidRedirectProvisionalLoad(0, // routing_id
- -1, // pending page_id
- GURL(), // opener
- kNewURL, // old url
- kRedirectURL)); // new url
Charlie Reis 2012/05/30 22:43:31 I don't understand. Doesn't this just remove the
mmenke 2012/05/30 22:50:43 After this CL, the NavigationController will no lo
Charlie Reis 2012/05/31 16:56:27 Ok, I experimentally verified that this updated te
// We don't want to change the NavigationEntry's url, in case it cancels.
// Prevents regression of http://crbug.com/77786.
- EXPECT_EQ(kNewURL, controller.GetPendingEntry()->GetURL());
+ //EXPECT_EQ(kNewURL, controller.GetPendingEntry()->GetURL());
Charlie Reis 2012/05/30 22:43:31 Shouldn't have commented out code. But again, thi
Charlie Reis 2012/05/31 16:56:27 This is unfortunate. I'd like to keep this line i
Deprecated (see juliatuttle) 2012/05/31 18:16:24 Done.
// It may abort before committing, if it's a download or due to a stop or
// a new navigation from the user.
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698