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

Unified Diff: content/public/test/test_renderer_host.cc

Issue 304763002: Trust the renderer's same-document navigation flag if it is a same-origin nav. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: isNavigationInPage->isFragmentNavigation, with caveat on the name Created 6 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/public/test/test_renderer_host.cc
diff --git a/content/public/test/test_renderer_host.cc b/content/public/test/test_renderer_host.cc
index 45e8306a546e927bc643a61532663440493ca81d..ca182448f07783a627825fe6769aede5c6356217 100644
--- a/content/public/test/test_renderer_host.cc
+++ b/content/public/test/test_renderer_host.cc
@@ -150,7 +150,8 @@ void RenderViewHostTestHarness::Reload() {
DCHECK(entry);
controller().Reload(false);
static_cast<TestRenderViewHost*>(
- rvh())->SendNavigate(entry->GetPageID(), entry->GetURL());
+ rvh())->SendNavigateWithTransition(
+ entry->GetPageID(), entry->GetURL(), PAGE_TRANSITION_RELOAD);
}
void RenderViewHostTestHarness::FailedReload() {

Powered by Google App Engine
This is Rietveld 408576698