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

Unified Diff: content/renderer/history_controller.cc

Issue 1425303002: OOPIF: Stop using HistoryController and refactor UpdateState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit Created 5 years, 1 month 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
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/history_controller_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/history_controller.cc
diff --git a/content/renderer/history_controller.cc b/content/renderer/history_controller.cc
index 225f71748afa19537689e5e294e28b70faec1c78..2507403f1b75a3a1877e4f089528fd1043c87e9d 100644
--- a/content/renderer/history_controller.cc
+++ b/content/renderer/history_controller.cc
@@ -36,6 +36,7 @@
#include "content/renderer/history_controller.h"
#include "content/common/navigation_params.h"
+#include "content/common/site_isolation_policy.h"
#include "content/renderer/render_frame_impl.h"
#include "content/renderer/render_view_impl.h"
#include "third_party/WebKit/public/web/WebFrameLoadType.h"
@@ -50,6 +51,8 @@ namespace content {
HistoryController::HistoryController(RenderViewImpl* render_view)
: render_view_(render_view) {
+ // We don't use HistoryController in OOPIF enabled modes.
+ DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries());
}
HistoryController::~HistoryController() {
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/history_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698