| Index: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
|
| diff --git a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
|
| index 9f65c7cde31e3dd6156aae13d004a2ed58cdd19c..d6b74f062cdab46aa987cc7da6370b57db1c5c3e 100644
|
| --- a/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
|
| +++ b/third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp
|
| @@ -70,18 +70,18 @@ MHTMLArchive::~MHTMLArchive()
|
| {
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<MHTMLArchive> MHTMLArchive::create(const KURL& url, SharedBuffer* data)
|
| +RawPtr<MHTMLArchive> MHTMLArchive::create(const KURL& url, SharedBuffer* data)
|
| {
|
| // For security reasons we only load MHTML pages from local URLs.
|
| if (!SchemeRegistry::shouldTreatURLSchemeAsLocal(url.protocol()))
|
| return nullptr;
|
|
|
| MHTMLParser parser(data);
|
| - WillBeHeapVector<RefPtrWillBeMember<ArchiveResource>> resources = parser.parseArchive();
|
| + HeapVector<Member<ArchiveResource>> resources = parser.parseArchive();
|
| if (resources.isEmpty())
|
| return nullptr; // Invalid MHTML file.
|
|
|
| - RefPtrWillBeRawPtr<MHTMLArchive> archive = adoptRefWillBeNoop(new MHTMLArchive);
|
| + RawPtr<MHTMLArchive> archive = (new MHTMLArchive);
|
| // The first document suitable resource is the main resource of the top frame.
|
| for (size_t i = 0; i < resources.size(); ++i) {
|
| const AtomicString& mimeType = resources[i]->mimeType();
|
| @@ -219,7 +219,7 @@ void MHTMLArchive::generateMHTMLFooter(
|
| outputBuffer.append(asciiString.data(), asciiString.length());
|
| }
|
|
|
| -void MHTMLArchive::setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource> mainResource)
|
| +void MHTMLArchive::setMainResource(RawPtr<ArchiveResource> mainResource)
|
| {
|
| m_mainResource = mainResource;
|
| }
|
|
|