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

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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
« no previous file with comments | « Source/platform/transforms/TransformOperations.cpp ('k') | Source/web/PopupListBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index 709f182670f4b087e58f7981d2073fd7d361e85d..3977f17b2386870d800b16f5dcbb1b3507f7fca9 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -293,7 +293,7 @@ void FrameLoaderClientImpl::detachedFromParent()
client->frameDetached(m_webFrame);
// Clear our reference to WebCore::Frame at the very end, in case the client
// refers to it.
- m_webFrame->setWebCoreFrame(0);
+ m_webFrame->setWebCoreFrame(nullptr);
}
void FrameLoaderClientImpl::dispatchWillRequestAfterPreconnect(ResourceRequest& request)
@@ -625,7 +625,7 @@ PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin(
bool loadManually)
{
if (!m_webFrame->client())
- return 0;
+ return nullptr;
WebPluginParams params;
params.url = url;
@@ -636,18 +636,18 @@ PassRefPtr<Widget> FrameLoaderClientImpl::createPlugin(
WebPlugin* webPlugin = m_webFrame->client()->createPlugin(m_webFrame, params);
if (!webPlugin)
- return 0;
+ return nullptr;
// The container takes ownership of the WebPlugin.
RefPtr<WebPluginContainerImpl> container =
WebPluginContainerImpl::create(element, webPlugin);
if (!webPlugin->initialize(container.get()))
- return 0;
+ return nullptr;
// The element might have been removed during plugin initialization!
if (!element->renderer())
- return 0;
+ return nullptr;
return container;
}
« no previous file with comments | « Source/platform/transforms/TransformOperations.cpp ('k') | Source/web/PopupListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698