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

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

Issue 1919153002: Tidy up WebGeolocationController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: still support implicit conversion Created 4 years, 8 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: third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp b/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
index e2c12fd6c9b548e962ae1ed152833c5dd9da27a1..45fe62a5bddb9fa80b1afc5949eb1b88bcec83b2 100644
--- a/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
@@ -140,8 +140,8 @@ void GeolocationController::errorOccurred(GeolocationError* error)
GeolocationPosition* GeolocationController::lastPosition()
{
- if (m_lastPosition.get())
- return m_lastPosition.get();
+ if (m_lastPosition)
+ return m_lastPosition;
if (!m_client)
return 0;

Powered by Google App Engine
This is Rietveld 408576698