diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 21:56:17 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 21:56:17 +0000 |
commit | 576269a709da2e61481c7e1a5a3ac7771949d168 (patch) | |
tree | b94236270a79f7b241e5d615b5d66e70ca651cc5 /net/http | |
parent | 27ed3baee75f2dd28eb837dafdb41c5bddc759cd (diff) | |
download | chromium_src-576269a709da2e61481c7e1a5a3ac7771949d168.zip chromium_src-576269a709da2e61481c7e1a5a3ac7771949d168.tar.gz chromium_src-576269a709da2e61481c7e1a5a3ac7771949d168.tar.bz2 |
Use arraysize() instead of ARRAYSIZE_UNSAFE() where possible. Remove pointless comment about use of ARRAYSIZE_UNSAFE().
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2364003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_cache_transaction.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc index cf7af5d..b62c5a2 100644 --- a/net/http/http_cache_transaction.cc +++ b/net/http/http_cache_transaction.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -119,7 +119,7 @@ HttpCache::Transaction::Transaction(HttpCache* cache, bool enable_range_support) write_headers_callback_(new CancelableCompletionCallback<Transaction>( this, &Transaction::OnIOComplete))) { COMPILE_ASSERT(HttpCache::Transaction::kNumValidationHeaders == - ARRAYSIZE_UNSAFE(kValidationHeaders), + arraysize(kValidationHeaders), Invalid_number_of_validation_headers); } @@ -1244,7 +1244,7 @@ void HttpCache::Transaction::SetRequest(const BoundNetLog& net_log, // Check for conditionalization headers which may correspond with a // cache validation request. - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kValidationHeaders); ++i) { + for (size_t i = 0; i < arraysize(kValidationHeaders); ++i) { const ValidationHeaderInfo& info = kValidationHeaders[i]; std::string validation_value; if (request_->extra_headers.GetHeader( @@ -1407,7 +1407,7 @@ int HttpCache::Transaction::BeginExternallyConditionalizedRequest() { DCHECK_EQ(UPDATE, mode_); DCHECK(external_validation_.initialized); - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kValidationHeaders); i++) { + for (size_t i = 0; i < arraysize(kValidationHeaders); i++) { if (external_validation_.values[i].empty()) continue; // Retrieve either the cached response's "etag" or "last-modified" header. |