Index: chrome/browser/ssl/ssl_browser_tests.cc |
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc |
index ff88349e796096ea08149bf0ea8735b99b40c3c6..4d1ffdc5f137b86284d4beedce12b95dfd010d37 100644 |
--- a/chrome/browser/ssl/ssl_browser_tests.cc |
+++ b/chrome/browser/ssl/ssl_browser_tests.cc |
@@ -31,6 +31,7 @@ |
#include "content/public/browser/navigation_controller.h" |
#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/notification_service.h" |
+#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/browser/web_contents.h" |
@@ -1805,7 +1806,7 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, MAYBE_TestInterstitialJavaScriptProceeds) { |
content::Source<NavigationController>(&tab->GetController())); |
InterstitialPage* interstitial_page = tab->GetInterstitialPage(); |
content::RenderViewHost* interstitial_rvh = |
- interstitial_page->GetRenderViewHostForTesting(); |
+ interstitial_page->GetMainFrame()->GetRenderViewHost(); |
int result = -1; |
std::string javascript = base::StringPrintf( |
"window.domAutomationController.send(%d);", |
@@ -1837,7 +1838,7 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, TestInterstitialJavaScriptGoesBack) { |
content::NotificationService::AllSources()); |
InterstitialPage* interstitial_page = tab->GetInterstitialPage(); |
content::RenderViewHost* interstitial_rvh = |
- interstitial_page->GetRenderViewHostForTesting(); |
+ interstitial_page->GetMainFrame()->GetRenderViewHost(); |
int result = -1; |
std::string javascript = base::StringPrintf( |
"window.domAutomationController.send(%d);", |