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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 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/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index cd0a108eb988ad8e718cee8bf8218c1e2bced0de..f56c4c12c5d1b8777929b08471c4a4ea710d68f9 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -331,7 +331,7 @@ void ResourceFetcher::RequestLoadStarted(unsigned long identifier,
PopulateTimingInfo(info.Get(), resource);
info->ClearLoadTimings();
info->SetLoadFinishTime(info->InitialTime());
- scheduled_resource_timing_reports_.push_back(info.Release());
+ scheduled_resource_timing_reports_.push_back(std::move(info));
if (!resource_timing_report_timer_.IsActive())
resource_timing_report_timer_.StartOneShot(0, BLINK_FROM_HERE);
}
@@ -840,7 +840,7 @@ void ResourceFetcher::StorePerformanceTimingInitiatorInformation(
if (!is_main_resource ||
Context().UpdateTimingInfoForIFrameNavigation(info.Get())) {
- resource_timing_info_map_.insert(resource, info.Release());
+ resource_timing_info_map_.insert(resource, std::move(info));
}
}

Powered by Google App Engine
This is Rietveld 408576698