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

Unified Diff: Source/modules/geolocation/GeolocationController.cpp

Issue 336553003: Change Page::m_mainFrame to be a Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 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: Source/modules/geolocation/GeolocationController.cpp
diff --git a/Source/modules/geolocation/GeolocationController.cpp b/Source/modules/geolocation/GeolocationController.cpp
index cb174270ca2b92fd0f61eade3a93316ea63cef29..213bb36efdb7c597b710cc99d11326824f42c11d 100644
--- a/Source/modules/geolocation/GeolocationController.cpp
+++ b/Source/modules/geolocation/GeolocationController.cpp
@@ -51,14 +51,14 @@ GeolocationController::GeolocationController(LocalFrame& frame, GeolocationClien
m_inspectorAgent = geolocationAgent.get();
frame.page()->inspectorController().registerModuleAgent(geolocationAgent.release());
} else {
- m_inspectorAgent = GeolocationController::from(frame.page()->mainFrame())->m_inspectorAgent;
+ m_inspectorAgent = GeolocationController::from(frame.page()->deprecatedLocalMainFrame())->m_inspectorAgent;
}
m_inspectorAgent->AddController(this);
if (!frame.isMainFrame()) {
// internals.setGeolocationClientMock is per page.
- GeolocationController* mainController = GeolocationController::from(frame.page()->mainFrame());
+ GeolocationController* mainController = GeolocationController::from(frame.page()->deprecatedLocalMainFrame());
if (mainController->hasClientForTest())
setClientForTest(mainController->client());
}
« no previous file with comments | « Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp ('k') | Source/web/InspectorFrontendClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698