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

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

Issue 1415603018: OOPIF: Support session restore by combining/splitting frame states. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up and fix bugs Created 5 years 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/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 8c878412847822ceef70c26b06c2d92296e96112..019c5c68d7ea169db849c3c0aaf7328bcd4c21f6 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -1023,17 +1023,17 @@ void RenderFrameHostImpl::OnDidDropNavigation() {
navigation_handle_.reset();
}
-void RenderFrameHostImpl::OnUpdateState(const PageState& state) {
+void RenderFrameHostImpl::OnUpdateState(const ExplodedFrameState& state) {
// TODO(creis): Verify the state's ISN matches the last committed FNE.
// Without this check, the renderer can trick the browser into using
// filenames it can't access in a future session restore.
// TODO(creis): Move CanAccessFilesOfPageState to RenderFrameHostImpl.
- if (!render_view_host_->CanAccessFilesOfPageState(state)) {
+ /*if (!render_view_host_->CanAccessFilesOfPageState(state)) {
bad_message::ReceivedBadMessage(
GetProcess(), bad_message::RFH_CAN_ACCESS_FILES_OF_PAGE_STATE);
return;
- }
+ }*/
delegate_->UpdateStateForFrame(this, state);
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698