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

Unified Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 251823002: Move didAccessInitialDocument to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index b1b3ef346e74d340497e5b9bd4a80b004688e812..1ded7736f1c48e42d03fbe4c105c8bc19cc6ce33 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -1405,13 +1405,9 @@ int32 NavigationControllerImpl::GetMaxRestoredPageID() const {
}
bool NavigationControllerImpl::IsUnmodifiedBlankTab() const {
- // TODO(creis): Move has_accessed_initial_document from RenderViewHost to
- // WebContents and NavigationControllerDelegate.
- RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>(
- delegate_->GetRenderViewHost());
return IsInitialNavigation() &&
- !GetLastCommittedEntry() &&
- !rvh->has_accessed_initial_document();
+ !GetLastCommittedEntry() &&
+ !delegate_->HasAccessedInitialDocument();
}
SessionStorageNamespace*

Powered by Google App Engine
This is Rietveld 408576698