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

Unified Diff: Source/web/WebSharedWorkerImpl.cpp

Issue 1308313002: [Oilpan] Change pointer type to RefPtrWillBePersistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change RawPtr to RefPtr on non-Oilpan build Created 5 years, 4 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/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSharedWorkerImpl.cpp
diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
index 110462e47290e0d1ff16631adc41c2627ef26567..c767f89f3d2d8d41745429f97b71ca64e2462253 100644
--- a/Source/web/WebSharedWorkerImpl.cpp
+++ b/Source/web/WebSharedWorkerImpl.cpp
@@ -81,8 +81,8 @@ namespace blink {
// possible.
WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client)
- : m_webView(0)
- , m_mainFrame(0)
+ : m_webView(nullptr)
+ , m_mainFrame(nullptr)
, m_askedToTerminate(false)
, m_workerInspectorProxy(WorkerInspectorProxy::create())
, m_client(client)
@@ -133,7 +133,7 @@ void WebSharedWorkerImpl::initializeLoader()
// FIXME: Settings information should be passed to the Worker process from Browser process when the worker
// is created (similar to RenderThread::OnCreateNewView).
m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Document, this));
- m_webView->setMainFrame(m_mainFrame);
+ m_webView->setMainFrame(m_mainFrame.get());
m_mainFrame->setDevToolsAgentClient(this);
// If we were asked to pause worker context on start and wait for debugger then it is the good time to do that.
« no previous file with comments | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698