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

Unified Diff: extensions/browser/api/web_request/web_request_api.cc

Issue 2551723002: Replace unique_ptr.reset/release with std::move under src/extensions (Closed)
Patch Set: Created 4 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: extensions/browser/api/web_request/web_request_api.cc
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
index 8f2d6fdbdb1d0f1ad3e7130a50e2485d28bf4c39..ebe0c124f60d94d265035f5025fc78b9bed2f52f 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -2299,9 +2299,9 @@ WebRequestInternalEventHandledFunction::Run() {
response_headers->push_back(helpers::ResponseHeader(name, value));
}
if (has_request_headers)
- response->request_headers.reset(request_headers.release());
+ response->request_headers = std::move(request_headers);
else
- response->response_headers.reset(response_headers.release());
+ response->response_headers = std::move(response_headers);
}
if (value->HasKey(keys::kAuthCredentialsKey)) {

Powered by Google App Engine
This is Rietveld 408576698