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

Unified Diff: third_party/WebKit/Source/modules/device_light/DeviceLightController.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/device_light/DeviceLightController.cpp
diff --git a/third_party/WebKit/Source/modules/device_light/DeviceLightController.cpp b/third_party/WebKit/Source/modules/device_light/DeviceLightController.cpp
index 200af36a7757feb50f362f1f7b78286f172bb9e8..1fed15f564fce08ad50c0de5365f827573f8d272 100644
--- a/third_party/WebKit/Source/modules/device_light/DeviceLightController.cpp
+++ b/third_party/WebKit/Source/modules/device_light/DeviceLightController.cpp
@@ -31,10 +31,10 @@ const char* DeviceLightController::supplementName()
DeviceLightController& DeviceLightController::from(Document& document)
{
- DeviceLightController* controller = static_cast<DeviceLightController*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
+ DeviceLightController* controller = static_cast<DeviceLightController*>(HeapSupplement<Document>::from(document, supplementName()));
if (!controller) {
controller = new DeviceLightController(document);
- WillBeHeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
+ HeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(controller));
}
return *controller;
}
@@ -54,7 +54,7 @@ void DeviceLightController::unregisterWithDispatcher()
DeviceLightDispatcher::instance().removeController(this);
}
-PassRefPtrWillBeRawPtr<Event> DeviceLightController::lastEvent() const
+RawPtr<Event> DeviceLightController::lastEvent() const
{
return DeviceLightEvent::create(EventTypeNames::devicelight,
DeviceLightDispatcher::instance().latestDeviceLightData());
@@ -74,7 +74,7 @@ const AtomicString& DeviceLightController::eventTypeName() const
DEFINE_TRACE(DeviceLightController)
{
DeviceSingleWindowEventController::trace(visitor);
- WillBeHeapSupplement<Document>::trace(visitor);
+ HeapSupplement<Document>::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698