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

Unified Diff: Source/web/WebHelperPluginImpl.cpp

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/WebFrameImpl.cpp ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebHelperPluginImpl.cpp
diff --git a/Source/web/WebHelperPluginImpl.cpp b/Source/web/WebHelperPluginImpl.cpp
index 94f28bb0a5b0348794bd0fa7f9e9454a4338e6f2..4bc0be943955e87b0e6853fd4e4113fcfbb9f2fc 100644
--- a/Source/web/WebHelperPluginImpl.cpp
+++ b/Source/web/WebHelperPluginImpl.cpp
@@ -157,7 +157,7 @@ void WebHelperPluginImpl::closeHelperPlugin()
{
if (m_page) {
m_page->clearPageGroup();
- m_page->mainFrame()->loader()->stopAllLoaders();
+ m_page->mainFrame()->loader().stopAllLoaders();
}
// We must destroy the page now in case the host page is being destroyed, in
@@ -223,11 +223,11 @@ bool WebHelperPluginImpl::initializePage(const String& pluginType, const WebDocu
// The page's main frame was set in initializeFrame() as a result of the above call.
Frame* frame = m_page->mainFrame();
ASSERT(frame);
- frame->loader()->forceSandboxFlags(SandboxAll & ~SandboxPlugins);
+ frame->loader().forceSandboxFlags(SandboxAll & ~SandboxPlugins);
frame->setView(FrameView::create(frame));
// No need to set a size or make it not transparent.
- writeDocument(pluginType, hostDocument, frame->loader()->activeDocumentLoader());
+ writeDocument(pluginType, hostDocument, frame->loader().activeDocumentLoader());
return true;
}
@@ -238,7 +238,7 @@ void WebHelperPluginImpl::destroyPage()
return;
if (m_page->mainFrame())
- m_page->mainFrame()->loader()->frameDetached();
+ m_page->mainFrame()->loader().frameDetached();
m_page.clear();
}
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698