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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationController.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/presentation/PresentationController.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
index 2666a78d61a26781e47fca21a4938ded775aecfe..3dea7e774b9c024629019ee052fc29efe466d6f8 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.cpp
@@ -25,9 +25,9 @@ PresentationController::~PresentationController()
}
// static
-PassOwnPtrWillBeRawPtr<PresentationController> PresentationController::create(LocalFrame& frame, WebPresentationClient* client)
+RawPtr<PresentationController> PresentationController::create(LocalFrame& frame, WebPresentationClient* client)
{
- return adoptPtrWillBeNoop(new PresentationController(frame, client));
+ return new PresentationController(frame, client);
}
// static
@@ -39,13 +39,13 @@ const char* PresentationController::supplementName()
// static
PresentationController* PresentationController::from(LocalFrame& frame)
{
- return static_cast<PresentationController*>(WillBeHeapSupplement<LocalFrame>::from(frame, supplementName()));
+ return static_cast<PresentationController*>(HeapSupplement<LocalFrame>::from(frame, supplementName()));
}
// static
void PresentationController::provideTo(LocalFrame& frame, WebPresentationClient* client)
{
- WillBeHeapSupplement<LocalFrame>::provideTo(frame, PresentationController::supplementName(), PresentationController::create(frame, client));
+ HeapSupplement<LocalFrame>::provideTo(frame, PresentationController::supplementName(), PresentationController::create(frame, client));
}
WebPresentationClient* PresentationController::client()
@@ -57,7 +57,7 @@ DEFINE_TRACE(PresentationController)
{
visitor->trace(m_presentation);
visitor->trace(m_connections);
- WillBeHeapSupplement<LocalFrame>::trace(visitor);
+ HeapSupplement<LocalFrame>::trace(visitor);
LocalFrameLifecycleObserver::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698