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

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

Issue 2814273006: Remove an unnecessary CachedMetadata copy in URLLoaderClientImpl (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | content/child/resource_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/async_resource_handler.cc
diff --git a/content/browser/loader/async_resource_handler.cc b/content/browser/loader/async_resource_handler.cc
index 932208ad3d1185c119c03914aef71cc359679729..07d4aaad09124630d1bf38dc2f8171e3134f4312 100644
--- a/content/browser/loader/async_resource_handler.cc
+++ b/content/browser/loader/async_resource_handler.cc
@@ -214,9 +214,9 @@ void AsyncResourceHandler::OnResponseStarted(
sent_received_response_msg_ = true;
if (request()->response_info().metadata.get()) {
- std::vector<char> copy(request()->response_info().metadata->data(),
- request()->response_info().metadata->data() +
- request()->response_info().metadata->size());
+ std::vector<uint8_t> copy(request()->response_info().metadata->data(),
+ request()->response_info().metadata->data() +
+ request()->response_info().metadata->size());
filter->Send(new ResourceMsg_ReceivedCachedMetadata(GetRequestID(), copy));
}
« no previous file with comments | « no previous file | content/child/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698