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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 88a65026da54ed47d54371c8f79176708f583de0..b399325bc770bec9d9a967902f6744339a10bfe9 100644
--- a/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
@@ -73,9 +73,9 @@ GeolocationController::~GeolocationController()
#endif
}
-PassOwnPtrWillBeRawPtr<GeolocationController> GeolocationController::create(LocalFrame& frame, GeolocationClient* client)
+RawPtr<GeolocationController> GeolocationController::create(LocalFrame& frame, GeolocationClient* client)
{
- return adoptPtrWillBeNoop(new GeolocationController(frame, client));
+ return new GeolocationController(frame, client);
}
void GeolocationController::addObserver(Geolocation* observer, bool enableHighAccuracy)
@@ -187,13 +187,13 @@ DEFINE_TRACE(GeolocationController)
visitor->trace(m_lastPosition);
visitor->trace(m_observers);
visitor->trace(m_highAccuracyObservers);
- WillBeHeapSupplement<LocalFrame>::trace(visitor);
+ HeapSupplement<LocalFrame>::trace(visitor);
PageLifecycleObserver::trace(visitor);
}
void provideGeolocationTo(LocalFrame& frame, GeolocationClient* client)
{
- WillBeHeapSupplement<LocalFrame>::provideTo(frame, GeolocationController::supplementName(), GeolocationController::create(frame, client));
+ HeapSupplement<LocalFrame>::provideTo(frame, GeolocationController::supplementName(), GeolocationController::create(frame, client));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698