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

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, 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/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 5ac0489efb37b9b0c950ebf538df025eddbf9768..6ffa31b8840291d795dc820bf47917170ec44b26 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;
@@ -143,7 +143,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().)
« no previous file with comments | « third_party/WebKit/Source/core/frame/RemoteFrame.h ('k') | third_party/WebKit/Source/core/frame/RemoteFrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698