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

Unified Diff: content/test/layouttest_support.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/renderer/render_view_impl.cc ('k') | content/test/test_render_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 62bba469e97851857a88e6072b37df39e60945f0..3996ccbd7cc26975428528a06ce83704c99f6a2f 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -14,6 +14,7 @@
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/child/geofencing/web_geofencing_provider_impl.h"
#include "content/common/gpu/image_transport_surface.h"
+#include "content/common/site_isolation_policy.h"
#include "content/public/common/page_state.h"
#include "content/public/renderer/renderer_gamepad_provider.h"
#include "content/renderer/fetchers/manifest_fetcher.h"
@@ -188,6 +189,10 @@ int GetLocalSessionHistoryLength(RenderView* render_view) {
}
void SyncNavigationState(RenderView* render_view) {
+ // TODO(creis): Add support for testing in OOPIF-enabled modes.
+ // See https://crbug.com/477150.
+ if (SiteIsolationPolicy::UseSubframeNavigationEntries())
+ return;
static_cast<RenderViewImpl*>(render_view)->SendUpdateState();
}
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/test_render_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698