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

Unified Diff: Source/core/plugins/DOMMimeTypeArray.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/DOMMimeType.cpp ('k') | Source/core/plugins/DOMPlugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/DOMMimeTypeArray.cpp
diff --git a/Source/core/plugins/DOMMimeTypeArray.cpp b/Source/core/plugins/DOMMimeTypeArray.cpp
index 3410fdba2384325eaf351c5cd279bb8c76a6e309..32904c922aea436dd54f8853d8982d2a1062eaa9 100644
--- a/Source/core/plugins/DOMMimeTypeArray.cpp
+++ b/Source/core/plugins/DOMMimeTypeArray.cpp
@@ -54,14 +54,14 @@ PassRefPtrWillBeRawPtr<DOMMimeType> DOMMimeTypeArray::item(unsigned index)
const Vector<MimeClassInfo>& mimes = data->mimes();
if (index >= mimes.size())
return nullptr;
- return DOMMimeType::create(data, m_frame, index).get();
+ return DOMMimeType::create(data, m_frame, index);
}
bool DOMMimeTypeArray::canGetItemsForName(const AtomicString& propertyName)
{
PluginData *data = getPluginData();
if (!data)
- return 0;
+ return false;
const Vector<MimeClassInfo>& mimes = data->mimes();
for (unsigned i = 0; i < mimes.size(); ++i) {
if (mimes[i].type == propertyName)
@@ -78,7 +78,7 @@ PassRefPtrWillBeRawPtr<DOMMimeType> DOMMimeTypeArray::namedItem(const AtomicStri
const Vector<MimeClassInfo>& mimes = data->mimes();
for (unsigned i = 0; i < mimes.size(); ++i) {
if (mimes[i].type == propertyName)
- return DOMMimeType::create(data, m_frame, i).get();
+ return DOMMimeType::create(data, m_frame, i);
}
return nullptr;
}
@@ -86,10 +86,10 @@ PassRefPtrWillBeRawPtr<DOMMimeType> DOMMimeTypeArray::namedItem(const AtomicStri
PluginData* DOMMimeTypeArray::getPluginData() const
{
if (!m_frame)
- return 0;
+ return nullptr;
Page* p = m_frame->page();
if (!p)
- return 0;
+ return nullptr;
return p->pluginData();
}
« no previous file with comments | « Source/core/plugins/DOMMimeType.cpp ('k') | Source/core/plugins/DOMPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698