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

Unified Diff: third_party/WebKit/Source/core/frame/RemoteFrame.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, 10 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/core/frame/RemoteFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
index 7c2e6635b532f91eb57d62f1a6afbad1f2de28cb..033827ee4b3a31d5ac190d34461b95327cefacd1 100644
--- a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
@@ -33,9 +33,9 @@ inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, Fram
{
}
-PassRefPtrWillBeRawPtr<RemoteFrame> RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
+RawPtr<RemoteFrame> RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
{
- return adoptRefWillBeNoop(new RemoteFrame(client, host, owner));
+ return (new RemoteFrame(client, host, owner));
}
RemoteFrame::~RemoteFrame()
@@ -92,7 +92,7 @@ void RemoteFrame::detach(FrameDetachType type)
// Frame::detach() requires the caller to keep a reference to this, since
// otherwise it may clear the last reference to this, causing it to be
// deleted, which can cause a use-after-free.
- RefPtrWillBeRawPtr<RemoteFrame> protect(this);
+ RawPtr<RemoteFrame> protect(this);
detachChildren();
if (!client())
return;
@@ -151,7 +151,7 @@ void RemoteFrame::visibilityChanged(bool visible)
remoteFrameClient()->visibilityChanged(visible);
}
-void RemoteFrame::setView(PassRefPtrWillBeRawPtr<RemoteFrameView> view)
+void RemoteFrame::setView(RawPtr<RemoteFrameView> view)
{
// Oilpan: as RemoteFrameView performs no finalization actions,
// no explicit dispose() of it needed here. (cf. FrameView::dispose().)

Powered by Google App Engine
This is Rietveld 408576698