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

Unified Diff: content/test/test_render_view_host.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/test/test_render_frame.h ('k') | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index d56b60bf2adbc1d3b7ccc33924728094315f7e2e..71142de5dead22160dace976dbfcd12c2f446bb5 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -12,6 +12,7 @@
#include "content/browser/site_instance_impl.h"
#include "content/common/dom_storage/dom_storage_types.h"
#include "content/common/frame_messages.h"
+#include "content/common/site_isolation_policy.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
@@ -298,11 +299,13 @@ void TestRenderViewHost::TestOnStartDragging(
void TestRenderViewHost::TestOnUpdateStateWithFile(
int page_id,
const base::FilePath& file_path) {
- OnUpdateState(page_id,
- PageState::CreateForTesting(GURL("http://www.google.com"),
- false,
- "data",
- &file_path));
+ PageState state = PageState::CreateForTesting(GURL("http://www.google.com"),
+ false, "data", &file_path);
+ if (SiteIsolationPolicy::UseSubframeNavigationEntries()) {
+ static_cast<RenderFrameHostImpl*>(GetMainFrame())->OnUpdateState(state);
+ } else {
+ OnUpdateState(page_id, state);
+ }
}
RenderViewHostImplTestHarness::RenderViewHostImplTestHarness() {
« no previous file with comments | « content/test/test_render_frame.h ('k') | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698