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

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

Issue 921443003: Fix RenderFrameCreated and RenderFrameDeleted WebContentsObserver methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Geolocation unit tests to create TestWebContents instead of regular WebContents. Created 5 years, 10 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 52eb422535a06b6af50b93c8bf4975595b87aa71..04245b89d6942bc13c27148a20ef2e7e67e487f0 100644
--- a/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
@@ -205,8 +205,7 @@ void GeolocationPermissionContextTests::CheckPermissionMessageSentInternal(
}
void GeolocationPermissionContextTests::AddNewTab(const GURL& url) {
- content::WebContents* new_tab = content::WebContents::Create(
- content::WebContents::CreateParams(profile()));
+ content::WebContents* new_tab = CreateTestWebContents();
new_tab->GetController().LoadURL(
url, content::Referrer(), ui::PAGE_TRANSITION_TYPED, std::string());
content::RenderFrameHostTester::For(new_tab->GetMainFrame())

Powered by Google App Engine
This is Rietveld 408576698