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

Unified Diff: chrome/browser/geolocation/geolocation_permission_context_unittest.cc

Issue 636673002: Remove navigation from TestRenderViewHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes from self-review Created 6 years, 2 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: chrome/browser/geolocation/geolocation_permission_context_unittest.cc
diff --git a/chrome/browser/geolocation/geolocation_permission_context_unittest.cc b/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
index d7b61740f6aa1fce43b159b7f84ff135b7530f5d..e46bf84b40d87f4cfe28bedb8cdac58b1377e807 100644
--- a/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
@@ -209,8 +209,8 @@ void GeolocationPermissionContextTests::AddNewTab(const GURL& url) {
content::WebContents::CreateParams(profile()));
new_tab->GetController().LoadURL(
url, content::Referrer(), ui::PAGE_TRANSITION_TYPED, std::string());
- content::RenderViewHostTester::For(new_tab->GetRenderViewHost())->
- SendNavigate(extra_tabs_.size() + 1, url);
+ content::RenderFrameHostTester::For(new_tab->GetMainFrame())
+ ->SendNavigate(extra_tabs_.size() + 1, url);
// Set up required helpers, and make this be as "tabby" as the code requires.
#if defined(ENABLE_EXTENSIONS)

Powered by Google App Engine
This is Rietveld 408576698