Commit a2d0da86 authored by creis@chromium.org's avatar creis@chromium.org

Remove dead NavigationControllerImpl::IsRedirect.

BUG=none
TEST=No behavior change.

Review URL: https://codereview.chromium.org/59863004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233160 0039d316-1c4b-4281-b951-d872f2087c98
parent 84e88452
......@@ -966,16 +966,6 @@ NavigationType NavigationControllerImpl::ClassifyNavigation(
return NAVIGATION_TYPE_EXISTING_PAGE;
}
bool NavigationControllerImpl::IsRedirect(
const ViewHostMsg_FrameNavigate_Params& params) {
// For main frame transition, we judge by params.transition.
// Otherwise, by params.redirects.
if (PageTransitionIsMainFrame(params.transition)) {
return PageTransitionIsRedirect(params.transition);
}
return params.redirects.size() > 1;
}
void NavigationControllerImpl::RendererDidNavigateToNewPage(
const ViewHostMsg_FrameNavigate_Params& params, bool replace_entry) {
NavigationEntryImpl* new_entry;
......
......@@ -306,9 +306,6 @@ class CONTENT_EXPORT NavigationControllerImpl
// must ensure that |CanPruneAllButVisible| returns true before calling this.
void PruneAllButVisibleInternal();
// Returns true if the navigation is redirect.
bool IsRedirect(const ViewHostMsg_FrameNavigate_Params& params);
// Returns true if the navigation is likley to be automatic rather than
// user-initiated.
bool IsLikelyAutoNavigation(base::TimeTicks now);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment