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

Unified Diff: extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc

Issue 1594973004: Remove use of void** from HttpResponseHeaders::EnumerateHeaderLines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 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: extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
diff --git a/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc b/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
index 1e85b1c676668d3a1576e2e5f631a5273f55b289..f9ef675231eca2b5e6af108023defa60d3abfbea 100644
--- a/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
+++ b/extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc
@@ -694,7 +694,7 @@ bool WebRequestConditionAttributeResponseHeaders::IsFulfilled(
bool passed = false; // Did some header pass TestNameValue?
std::string name;
std::string value;
- void* iter = NULL;
+ size_t iter = 0;
while (!passed && headers->EnumerateHeaderLines(&iter, &name, &value)) {
passed |= header_matcher_->TestNameValue(name, value);
}
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.cc ('k') | extensions/browser/api/mime_handler_private/mime_handler_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698