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

Unified Diff: content/browser/loader/resource_message_filter.cc

Issue 2824193002: Enable use_once_callback for //content/common/*.mojom (Closed)
Patch Set: push_messaging fix Created 3 years, 8 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: content/browser/loader/resource_message_filter.cc
diff --git a/content/browser/loader/resource_message_filter.cc b/content/browser/loader/resource_message_filter.cc
index 750c2d5a7766b87640f891f089ec4bb329bddd66..57d7409ec26fae0eb45c425e85ae5e89d81122c0 100644
--- a/content/browser/loader/resource_message_filter.cc
+++ b/content/browser/loader/resource_message_filter.cc
@@ -100,9 +100,9 @@ void ResourceMessageFilter::CreateLoaderAndStart(
void ResourceMessageFilter::SyncLoad(int32_t routing_id,
int32_t request_id,
const ResourceRequest& url_request,
- const SyncLoadCallback& callback) {
+ SyncLoadCallback callback) {
URLLoaderFactoryImpl::SyncLoad(requester_info_.get(), routing_id, request_id,
- url_request, callback);
+ url_request, std::move(callback));
}
int ResourceMessageFilter::child_id() const {

Powered by Google App Engine
This is Rietveld 408576698