Making sure we don't take a GestureNav screenshot unless the history position changes.
Only take a screenshot if the page id changes. Looking at NavigationControllerImpl::ClassifyNavigation(), I think this is the right check. If we could move the code for taking the screenshot post controller_->RendererDidNavigate() call, we'd be able to use the NavigationType calculated in that method, but based on the comments for the screenshot code, this doesn't seem like a safe thing to do. BUG=375921 Review URL: https://codereview.chromium.org/316553007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275324 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment