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

Unified Diff: Source/core/clipboard/Clipboard.cpp

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased 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/core/clipboard/Clipboard.h ('k') | Source/core/clipboard/DataObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/Clipboard.cpp
diff --git a/Source/core/clipboard/Clipboard.cpp b/Source/core/clipboard/Clipboard.cpp
index 993649424ef0329ef3ddb97122b943898094c090..1e77906d7228bbf58e68cafc7101bbee629f7514 100644
--- a/Source/core/clipboard/Clipboard.cpp
+++ b/Source/core/clipboard/Clipboard.cpp
@@ -194,15 +194,15 @@ Vector<String> Clipboard::types() const
return types;
}
-PassRefPtr<FileList> Clipboard::files() const
+PassRefPtrWillBeRawPtr<FileList> Clipboard::files() const
{
- RefPtr<FileList> files = FileList::create();
+ RefPtrWillBeRawPtr<FileList> files = FileList::create();
if (!canReadData())
return files.release();
for (size_t i = 0; i < m_dataObject->length(); ++i) {
if (m_dataObject->item(i)->kind() == DataObjectItem::FileKind) {
- RefPtr<Blob> blob = m_dataObject->item(i)->getAsFile();
+ RefPtrWillBeRawPtr<Blob> blob = m_dataObject->item(i)->getAsFile();
if (blob && blob->isFile())
files->append(toFile(blob.get()));
}
@@ -478,7 +478,7 @@ bool Clipboard::hasFileOfType(const String& type) const
if (!canReadTypes())
return false;
- RefPtr<FileList> fileList = files();
+ RefPtrWillBeRawPtr<FileList> fileList = files();
if (fileList->isEmpty())
return false;
« no previous file with comments | « Source/core/clipboard/Clipboard.h ('k') | Source/core/clipboard/DataObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698