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

Unified Diff: content/browser/service_worker/service_worker_request_handler.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/service_worker/service_worker_request_handler.cc
diff --git a/content/browser/service_worker/service_worker_request_handler.cc b/content/browser/service_worker/service_worker_request_handler.cc
index bd27e42eebc4d0dd421a1bc635c44f69698fa03f..05984a1a34b9af14b12546c93fb06a54f0c7b462 100644
--- a/content/browser/service_worker/service_worker_request_handler.cc
+++ b/content/browser/service_worker/service_worker_request_handler.cc
@@ -5,6 +5,7 @@
#include "content/browser/service_worker/service_worker_request_handler.h"
#include <string>
+#include <utility>
#include "base/macros.h"
#include "content/browser/service_worker/service_worker_context_core.h"
@@ -136,7 +137,7 @@ void ServiceWorkerRequestHandler::InitializeForNavigation(
// transferred to its "final" destination in the OnProviderCreated handler. If
// the navigation fails, it will be destroyed along with the
// ServiceWorkerNavigationHandleCore.
- navigation_handle_core->DidPreCreateProviderHost(provider_host.Pass());
+ navigation_handle_core->DidPreCreateProviderHost(std::move(provider_host));
}
void ServiceWorkerRequestHandler::InitializeHandler(
@@ -217,7 +218,7 @@ void ServiceWorkerRequestHandler::CompleteCrossSiteTransfer(
return;
DCHECK_EQ(provider_host_.get(), host_for_cross_site_transfer_.get());
context_->TransferProviderHostIn(new_process_id, new_provider_id,
- host_for_cross_site_transfer_.Pass());
+ std::move(host_for_cross_site_transfer_));
DCHECK_EQ(provider_host_->provider_id(), new_provider_id);
}

Powered by Google App Engine
This is Rietveld 408576698