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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 1983753002: Remove OwnPtr::release() calls in core/ (part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index f45d60fa6b9124ba576dee8f3c23b9018fa59476..1b9ad3d860334223e540d145df34f9c81ca5b705 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -277,7 +277,7 @@ void ResourceFetcher::requestLoadStarted(Resource* resource, const FetchRequest&
populateResourceTiming(info.get(), resource);
info->clearLoadTimings();
info->setLoadFinishTime(info->initialTime());
- m_scheduledResourceTimingReports.append(info.release());
+ m_scheduledResourceTimingReports.append(std::move(info));
if (!m_resourceTimingReportTimer.isActive())
m_resourceTimingReportTimer.startOneShot(0, BLINK_FROM_HERE);
}
@@ -292,7 +292,7 @@ static PassOwnPtr<TracedValue> urlForTraceEvent(const KURL& url)
{
OwnPtr<TracedValue> value = TracedValue::create();
value->setString("url", url.getString());
- return value.release();
+ return value;
}
Resource* ResourceFetcher::resourceForStaticData(const FetchRequest& request, const ResourceFactory& factory, const SubstituteData& substituteData)
@@ -595,7 +595,7 @@ void ResourceFetcher::storeResourceTimingInitiatorInformation(Resource* resource
}
if (!isMainResource || context().updateTimingInfoForIFrameNavigation(info.get()))
- m_resourceTimingInfoMap.add(resource, info.release());
+ m_resourceTimingInfoMap.add(resource, std::move(info));
}
ResourceFetcher::RevalidationPolicy ResourceFetcher::determineRevalidationPolicy(Resource::Type type, const FetchRequest& fetchRequest, Resource* existingResource, bool isStaticData) const

Powered by Google App Engine
This is Rietveld 408576698