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

Unified Diff: content/shell/browser/shell_devtools_frontend.cc

Issue 1594973004: Remove use of void** from HttpResponseHeaders::EnumerateHeaderLines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/shell/browser/shell_devtools_frontend.cc
diff --git a/content/shell/browser/shell_devtools_frontend.cc b/content/shell/browser/shell_devtools_frontend.cc
index 3acbab150210140dd8e8fc9be17e6c1a2f28a0aa..70e48065cc64fba77047e8c5e096df4063f0c041 100644
--- a/content/shell/browser/shell_devtools_frontend.cc
+++ b/content/shell/browser/shell_devtools_frontend.cc
@@ -293,10 +293,10 @@ void ShellDevToolsFrontend::OnURLFetchComplete(const net::URLFetcher* source) {
response.SetInteger("statusCode", rh ? rh->response_code() : 200);
response.Set("headers", headers);
- void* iterator = NULL;
+ size_t iterator = 0;
std::string name;
std::string value;
- while (rh && rh->EnumerateHeaderLines(&iterator, &name, &value))
+ while (rh && rh->EnumerateHeaderLines(iterator, &name, &value))
headers->SetString(name, value);
SendMessageAck(it->second, &response);

Powered by Google App Engine
This is Rietveld 408576698