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

Unified Diff: Source/core/plugins/DOMPlugin.cpp

Issue 928033002: Make FrameDestructionObserver::m_frame a private. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/core/plugins/DOMPlugin.h ('k') | Source/core/plugins/DOMPluginArray.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/DOMPlugin.cpp
diff --git a/Source/core/plugins/DOMPlugin.cpp b/Source/core/plugins/DOMPlugin.cpp
index ebaff997579d9e75c6e61779e33c61126ccc059a..69f998f4d9bbb25ecd7925b5a6e773d1c932e2f4 100644
--- a/Source/core/plugins/DOMPlugin.cpp
+++ b/Source/core/plugins/DOMPlugin.cpp
@@ -70,7 +70,7 @@ PassRefPtrWillBeRawPtr<DOMMimeType> DOMPlugin::item(unsigned index)
const Vector<MimeClassInfo>& mimes = m_pluginData->mimes();
for (unsigned i = 0; i < mimes.size(); ++i) {
if (mimes[i] == mime && m_pluginData->mimePluginIndices()[i] == m_index)
- return DOMMimeType::create(m_pluginData.get(), m_frame, i).get();
+ return DOMMimeType::create(m_pluginData.get(), frame(), i);
}
return nullptr;
}
@@ -87,9 +87,10 @@ bool DOMPlugin::canGetItemsForName(const AtomicString& propertyName)
PassRefPtrWillBeRawPtr<DOMMimeType> DOMPlugin::namedItem(const AtomicString& propertyName)
{
const Vector<MimeClassInfo>& mimes = m_pluginData->mimes();
- for (unsigned i = 0; i < mimes.size(); ++i)
+ for (unsigned i = 0; i < mimes.size(); ++i) {
if (mimes[i].type == propertyName)
- return DOMMimeType::create(m_pluginData.get(), m_frame, i).get();
+ return DOMMimeType::create(m_pluginData.get(), frame(), i);
+ }
return nullptr;
}
« no previous file with comments | « Source/core/plugins/DOMPlugin.h ('k') | Source/core/plugins/DOMPluginArray.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698