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

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 789703004: Reflect the status of a request for accessing a blacklisted url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index ba1a8f00734c0f34eb5ead8f5146a8ae860aa2e3..b45c161edfc8dc43b2ec03b05f9689dd8511d3a3 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -159,17 +159,18 @@ class TestInterstitialPage : public InterstitialPageImpl {
void TestDidNavigate(int page_id, const GURL& url) {
FrameHostMsg_DidCommitProvisionalLoad_Params params;
InitNavigateParams(&params, page_id, url, ui::PAGE_TRANSITION_TYPED);
- DidNavigate(GetRenderViewHostForTesting(), params);
+ DidNavigate(GetMainFrame()->GetRenderViewHost(), params);
}
void TestRenderViewTerminated(base::TerminationStatus status,
int error_code) {
- RenderViewTerminated(GetRenderViewHostForTesting(), status, error_code);
+ RenderViewTerminated(GetMainFrame()->GetRenderViewHost(), status,
+ error_code);
}
bool is_showing() const {
return static_cast<TestRenderWidgetHostView*>(
- GetRenderViewHostForTesting()->GetView())->is_showing();
+ GetMainFrame()->GetRenderViewHost()->GetView())->is_showing();
}
void ClearStates() {
@@ -1904,7 +1905,7 @@ TEST_F(WebContentsImplTest, ShowInterstitialThenCloseAndShutdown) {
interstitial->Show();
interstitial->TestDidNavigate(1, url);
RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>(
- interstitial->GetRenderViewHostForTesting());
+ interstitial->GetMainFrame()->GetRenderViewHost());
// Now close the contents.
DeleteContents();
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698