summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api
diff options
context:
space:
mode:
authorolli.raula <olli.raula@intel.com>2016-01-25 00:37:10 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-25 08:38:25 +0000
commitee489a59d11a8096dbe7f09af35ba3b604dfa6c3 (patch)
tree246d5fa9b15a297736c42816c3f50c61de20e2cb /extensions/browser/api
parent6daf96557d0720b2a7298dde3633f74e30709313 (diff)
downloadchromium_src-ee489a59d11a8096dbe7f09af35ba3b604dfa6c3.zip
chromium_src-ee489a59d11a8096dbe7f09af35ba3b604dfa6c3.tar.gz
chromium_src-ee489a59d11a8096dbe7f09af35ba3b604dfa6c3.tar.bz2
Remove use of void** from HttpResponseHeaders::EnumerateHeader
Remove use of of obaque void** and use instead size_t* parameter. Logic inside is untouched. TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1607773005 Cr-Commit-Position: refs/heads/master@{#371204}
Diffstat (limited to 'extensions/browser/api')
-rw-r--r--extensions/browser/api/declarative_webrequest/webrequest_action.cc2
-rw-r--r--extensions/browser/api/web_request/web_request_api_helpers.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/browser/api/declarative_webrequest/webrequest_action.cc b/extensions/browser/api/declarative_webrequest/webrequest_action.cc
index c5ecf71..e3cf9a8 100644
--- a/extensions/browser/api/declarative_webrequest/webrequest_action.cc
+++ b/extensions/browser/api/declarative_webrequest/webrequest_action.cc
@@ -968,7 +968,7 @@ WebRequestRemoveResponseHeaderAction::CreateDelta(
LinkedPtrEventResponseDelta result(
new helpers::EventResponseDelta(extension_id, extension_install_time));
- void* iter = NULL;
+ size_t iter = 0;
std::string current_value;
while (headers->EnumerateHeader(&iter, name_, &current_value)) {
if (has_value_ && !base::EqualsCaseInsensitiveASCII(current_value, value_))
diff --git a/extensions/browser/api/web_request/web_request_api_helpers.cc b/extensions/browser/api/web_request/web_request_api_helpers.cc
index c998367..158a8d9 100644
--- a/extensions/browser/api/web_request/web_request_api_helpers.cc
+++ b/extensions/browser/api/web_request/web_request_api_helpers.cc
@@ -838,7 +838,7 @@ static ParsedResponseCookies GetResponseCookies(
scoped_refptr<net::HttpResponseHeaders> override_response_headers) {
ParsedResponseCookies result;
- void* iter = NULL;
+ size_t iter = 0;
std::string value;
while (override_response_headers->EnumerateHeader(&iter, "Set-Cookie",
&value)) {