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

Unified Diff: net/http/http_cache_transaction.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index a5275f78b25d85b123a892f851fac8e406545e03..0ca5683b10723cca45d06a5a6cc323d8ce43460d 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -338,9 +338,9 @@ HttpCache::Transaction::Transaction(RequestPriority priority, HttpCache* cache)
total_received_bytes_(0),
websocket_handshake_stream_base_create_helper_(NULL),
weak_factory_(this) {
- COMPILE_ASSERT(HttpCache::Transaction::kNumValidationHeaders ==
- arraysize(kValidationHeaders),
- Invalid_number_of_validation_headers);
+ static_assert(HttpCache::Transaction::kNumValidationHeaders ==
+ arraysize(kValidationHeaders),
+ "invalid number of validation headers");
io_callback_ = base::Bind(&Transaction::OnIOComplete,
weak_factory_.GetWeakPtr());
« no previous file with comments | « net/http/http_auth.cc ('k') | net/http/http_network_transaction.h » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698